mirror of
https://github.com/samueldr/wip-pinebook-pro.git
synced 2024-11-27 05:19:44 +01:00
3d97b020e1
And follow latest from Nixpkgs
39 lines
1 KiB
Nix
39 lines
1 KiB
Nix
{ pkgs, lib, linux_5_7, kernelPatches, ... } @ args:
|
|
|
|
linux_5_7.override({
|
|
kernelPatches = lib.lists.unique (kernelPatches ++ [
|
|
pkgs.kernelPatches.bridge_stp_helper
|
|
pkgs.kernelPatches.request_key_helper
|
|
pkgs.kernelPatches.export_kernel_fpu_functions."5.3"
|
|
{
|
|
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
|
|
'';
|
|
}
|
|
]);
|
|
})
|
|
//
|
|
(args.argsOverride or {})
|