2020-07-27 02:43:31 +02:00
|
|
|
{ pkgs, lib, linux_5_7, kernelPatches, ... } @ args:
|
2020-07-14 02:30:48 +02:00
|
|
|
|
2020-07-27 02:43:31 +02:00
|
|
|
linux_5_7.override({
|
2020-07-14 06:21:17 +02:00
|
|
|
kernelPatches = lib.lists.unique (kernelPatches ++ [
|
|
|
|
pkgs.kernelPatches.bridge_stp_helper
|
|
|
|
pkgs.kernelPatches.request_key_helper
|
|
|
|
pkgs.kernelPatches.export_kernel_fpu_functions."5.3"
|
2020-07-27 02:43:31 +02:00
|
|
|
{
|
|
|
|
name = "pinebookpro-5.7.patch";
|
|
|
|
patch = ./pinebookpro-5.7.patch;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "0001-HACK-Revert-pwm-Read-initial-hardware-state-at-reque.patch";
|
|
|
|
patch = ./0001-HACK-Revert-pwm-Read-initial-hardware-state-at-reque.patch;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
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-07-14 06:21:17 +02:00
|
|
|
]);
|
2020-07-27 02:43:31 +02:00
|
|
|
})
|
|
|
|
//
|
|
|
|
(args.argsOverride or {})
|