1
0
Fork 0
mirror of https://github.com/samueldr/wip-pinebook-pro.git synced 2024-11-05 18:49:41 +01:00
wip-pinebook-pro/overlay.nix

39 lines
1 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 {};
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-06 21:21:02 +01:00
}