1
0
Fork 0
mirror of https://github.com/samueldr/wip-pinebook-pro.git synced 2024-11-23 11:29:43 +01:00
wip-pinebook-pro/overlay.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

2020-01-06 21:21:02 +01:00
final: super:
let
2020-01-06 21:21:57 +01:00
inherit (final) callPackage kernelPatches linuxPackagesFor;
2020-01-06 21:21:02 +01:00
in
{
# Alternative BSP u-boot, with nvme support if desired
# * https://gitlab.manjaro.org/manjaro-arm/packages/core/uboot-pinebookpro
2020-01-06 22:03:48 +01:00
uBootPinebookPro = callPackage ./u-boot {};
uBootPinebookProExternalFirst = callPackage ./u-boot {
externalFirst = true;
};
2020-01-06 22:03:48 +01:00
linux_pinebookpro = callPackage ./kernel {
2020-01-06 21:21:57 +01:00
kernelPatches = [
kernelPatches.bridge_stp_helper
#kernelPatches.export_kernel_fpu_functions
{
name = "pinebookpro-config-fixes";
patch = null;
extraConfig = ''
PCIE_ROCKCHIP y
PCIE_ROCKCHIP_HOST y
PCIE_DW_PLAT y
PCIE_DW_PLAT_HOST y
PHY_ROCKCHIP_PCIE y
PHY_ROCKCHIP_INNO_HDMI y
PHY_ROCKCHIP_DP y
ROCKCHIP_MBOX y
STAGING_MEDIA y
VIDEO_HANTRO y
VIDEO_HANTRO_ROCKCHIP y
USB_DWC2_PCI y
ROCKCHIP_LVDS y
ROCKCHIP_RGB y
'';
}
];
};
2020-01-06 22:03:48 +01:00
linuxPackages_pinebookpro = linuxPackagesFor final.linux_pinebookpro;
2020-01-07 21:09:54 +01:00
pinebookpro-firmware = callPackage ./firmware {};
2020-01-07 21:58:19 +01:00
pinebookpro-keyboard-updater = callPackage ./keyboard-updater {};
2020-01-06 21:21:02 +01:00
}