From a51973c994d614f8af069394064966ef8b7237b0 Mon Sep 17 00:00:00 2001 From: mexisme Date: Mon, 28 Nov 2022 23:43:50 +1300 Subject: [PATCH] Add linux-surface patches for 5.19.2 --- microsoft/surface/kernel/linux-5.19.2.nix | 71 +++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 microsoft/surface/kernel/linux-5.19.2.nix diff --git a/microsoft/surface/kernel/linux-5.19.2.nix b/microsoft/surface/kernel/linux-5.19.2.nix new file mode 100644 index 0000000..f893e81 --- /dev/null +++ b/microsoft/surface/kernel/linux-5.19.2.nix @@ -0,0 +1,71 @@ +{ lib, + fetchurl, +}: + +let + inherit (lib) kernel; + version = "5.19.2"; + +in { + inherit version; + modDirVersion = version; + branch = "5.19"; + src = fetchurl { + url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; + sha256 = "sha256-SOQKH1UB7GxA48htPVMZIAtojy2TYPcoMwhNdIAf5j0="; + }; + patches = repos.linux-surface + "/patches/${branch}"; + + kernelPatches = [ + { + name = "microsoft-surface-patches-linux-${version}"; + patch = null; + structuredExtraConfig = with lib.kernel; { + }; + } + { + name = "ms-surface/0001-surface3-oemb"; + patch = patches + "/0001-surface3-oemb.patch"; + } + { + name = "ms-surface/0002-mwifiex"; + patch = patches + "/0002-mwifiex.patch"; + } + { + name = "ms-surface/0003-ath10k"; + patch = patches + "/0003-ath10k.patch"; + } + { + name = "ms-surface/0004-ipts"; + patch = patches + "/0004-ipts.patch"; + } + { + name = "ms-surface/0005-surface-sam"; + patch = patches + "/0005-surface-sam.patch"; + } + { + name = "ms-surface/0006-surface-sam-over-hid"; + patch = patches + "/0006-surface-sam-over-hid.patch"; + } + { + name = "ms-surface/0007-surface-button"; + patch = patches + "/0007-surface-button.patch"; + } + { + name = "ms-surface/0008-surface-typecover"; + patch = patches + "/0008-surface-typecover.patch"; + } + { + name = "ms-surface/0009-surface-gpe"; + patch = patches + "/0009-surface-gpe.patch"; + } + { + name = "ms-surface/0010-cameras"; + patch = patches + "/0010-cameras.patch"; + } + { + name = "ms-surface/0011-amd-gpio"; + patch = patches + "/0011-amd-gpio.patch"; + } + ]; +}