git.iko.soy/typeable/nixpkgs
on master help sign in
linux: Add 4.17
commit39444569e0c6e96bceea74840762202e0e968f32 authorTim Steinbach <tim@nequissimus.com> dateMon 4 Jun 2018, 14:12 (8 years ago) parent5c4a404
2 files changed+31−1
pkgs/os-specific/linux/kernel/linux-4.17.nix+18 pkgs/top-level/all-packages.nix+13−1
pkgs/os-specific/linux/kernel/linux-4.17.nixnew file+18
@@ -0,0 +1,18 @@
1+{ stdenv, buildPackages, hostPlatform, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args:
2+
3+with stdenv.lib;
4+
5+buildLinux (args // rec {
6+ version = "4.17";
7+
8+ # modDirVersion needs to be x.y.z, will automatically add .0 if needed
9+ modDirVersion = if (modDirVersionArg == null) then concatStrings (intersperse "." (take 3 (splitString "." "${version}.0"))) else modDirVersionArg;
10+
11+ # branchVersion needs to be x.y
12+ extraMeta.branch = concatStrings (intersperse "." (take 2 (splitString "." version)));
13+
14+ src = fetchurl {
15+ url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
16+ sha256 = "04yd7hnsdyaq4xmrgg7509qjf09k1dy6k1p8qqfrdspajvc1valz";
17+ };
18+} // (args.argsOverride or {}))
pkgs/top-level/all-packages.nix+13−1
@@ -13526,6 +13526,17 @@ with pkgs;
1352613526 ];
1352713527 };
1352813528
13529+ linux_4_17 = callPackage ../os-specific/linux/kernel/linux-4.17.nix {
13530+ kernelPatches =
13531+ [ kernelPatches.bridge_stp_helper
13532+ # See pkgs/os-specific/linux/kernel/cpu-cgroup-v2-patches/README.md
13533+ # when adding a new linux version
13534+ # kernelPatches.cpu-cgroup-v2."4.11"
13535+ kernelPatches.modinst_arg_list_too_long
13536+ kernelPatches.bcm2835_mmal_v4l2_camera_driver # Only needed for 4.16!
13537+ ];
13538+ };
13539+
1352913540 linux_testing = callPackage ../os-specific/linux/kernel/linux-testing.nix {
1353013541 kernelPatches = [
1353113542 kernelPatches.bridge_stp_helper
@@ -13711,7 +13722,7 @@ with pkgs;
1371113722 linux = linuxPackages.kernel;
1371213723
1371313724 # Update this when adding the newest kernel major version!
13714− linuxPackages_latest = linuxPackages_4_16;
13725+ linuxPackages_latest = linuxPackages_4_17;
1371513726 linux_latest = linuxPackages_latest.kernel;
1371613727
1371713728 # Build the kernel modules for the some of the kernels.
@@ -13722,6 +13733,7 @@ with pkgs;
1372213733 linuxPackages_4_9 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_9);
1372313734 linuxPackages_4_14 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_14);
1372413735 linuxPackages_4_16 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_16);
13736+ linuxPackages_4_17 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_17);
1372513737 # Don't forget to update linuxPackages_latest!
1372613738
1372713739 # Intentionally lacks recurseIntoAttrs, as -rc kernels will quite likely break out-of-tree modules and cause failed Hydra builds.