From 0a614d2fb559115a63cd8ad66ed916f9d6c14ec7 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Mon, 12 Oct 2020 18:34:34 -0500 Subject: [PATCH] linux: init 5.9 Signed-off-by: Austin Seipp --- pkgs/os-specific/linux/kernel/linux-5.9.nix | 18 ++++++++++++++++++ pkgs/top-level/all-packages.nix | 9 +++++++++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/os-specific/linux/kernel/linux-5.9.nix diff --git a/pkgs/os-specific/linux/kernel/linux-5.9.nix b/pkgs/os-specific/linux/kernel/linux-5.9.nix new file mode 100644 index 000000000000..a7aefa209cc9 --- /dev/null +++ b/pkgs/os-specific/linux/kernel/linux-5.9.nix @@ -0,0 +1,18 @@ +{ stdenv, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args: + +with stdenv.lib; + +buildLinux (args // rec { + version = "5.9"; + + # modDirVersion needs to be x.y.z, will automatically add .0 if needed + modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg; + + # branchVersion needs to be x.y + extraMeta.branch = versions.majorMinor version; + + src = fetchurl { + url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; + sha256 = "01hsddf4sf9q5l1innyyl34b51y48v5wi34qpr421gsh2bpa8f9j"; + }; +} // (args.argsOverride or {})) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 06a0c8f559b4..f65f3fc9f56c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17861,6 +17861,14 @@ in ]; }; + linux_5_9 = callPackage ../os-specific/linux/kernel/linux-5.9.nix { + kernelPatches = [ + kernelPatches.bridge_stp_helper + kernelPatches.request_key_helper + kernelPatches.export_kernel_fpu_functions."5.3" + ]; + }; + linux_testing = callPackage ../os-specific/linux/kernel/linux-testing.nix { kernelPatches = [ kernelPatches.bridge_stp_helper @@ -18117,6 +18125,7 @@ in linuxPackages_5_4 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_5_4); linuxPackages_5_7 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_5_7); linuxPackages_5_8 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_5_8); + linuxPackages_5_9 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_5_9); # When adding to the list above: # - Update linuxPackages_latest to the latest version