1
0
Fork 0
mirror of https://github.com/samueldr/wip-pinebook-pro.git synced 2024-11-16 07:59:45 +01:00
wip-pinebook-pro/overlay.nix
2020-01-07 15:09:54 -05:00

38 lines
1 KiB
Nix

final: super:
let
inherit (final) callPackage kernelPatches linuxPackagesFor;
in
{
# Alternative BSP u-boot, with nvme support if desired
# * https://gitlab.manjaro.org/manjaro-arm/packages/core/uboot-pinebookpro
uBootPinebookPro = callPackage ./u-boot {};
linux_pinebookpro = callPackage ./kernel {
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
'';
}
];
};
linuxPackages_pinebookpro = linuxPackagesFor final.linux_pinebookpro;
pinebookpro-firmware = callPackage ./firmware {};
}