git.iko.soy/typeable/nixpkgs
on master help sign in
linux: Add 4.15
commit61043ad4d1425af2d2b5cb3af8b3740fdd90e3ad authorTim Steinbach <tim@nequissimus.com> dateMon 29 Jan 2018, 11:41 (9 years ago) parentda26e92
2 files changed+34−2
pkgs/os-specific/linux/kernel/linux-4.15.nix+18 pkgs/top-level/all-packages.nix+16−2
pkgs/os-specific/linux/kernel/linux-4.15.nixnew file+18
@@ -0,0 +1,18 @@
1+{ stdenv, buildPackages, hostPlatform, fetchurl, perl, buildLinux, ... } @ args:
2+
3+with stdenv.lib;
4+
5+import ./generic.nix (args // rec {
6+ version = "4.15";
7+
8+ # modDirVersion needs to be x.y.z, will automatically add .0 if needed
9+ modDirVersion = concatStrings (intersperse "." (take 3 (splitString "." "${version}.0")));
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 = "0sd7l9n9h7vf9c6gd6ciji28hawda60yj0llh17my06m0s4lf9js";
17+ };
18+} // (args.argsOverride or {}))
pkgs/top-level/all-packages.nix+16−2
@@ -12837,7 +12837,6 @@ with pkgs;
1283712837 kernelPatches = with kernelPatches; [
1283812838 kernelPatches.bridge_stp_helper
1283912839 kernelPatches.modinst_arg_list_too_long
12840− kernelPatches.cpu-cgroup-v2."4.11"
1284112840 kernelPatches.tag_hardened
1284212841 ];
1284312842 extraConfig = import ../os-specific/linux/kernel/hardened-config.nix {
@@ -12924,6 +12923,21 @@ with pkgs;
1292412923 ];
1292512924 };
1292612925
12926+ linux_4_15 = callPackage ../os-specific/linux/kernel/linux-4.15.nix {
12927+ kernelPatches =
12928+ [ kernelPatches.bridge_stp_helper
12929+ # See pkgs/os-specific/linux/kernel/cpu-cgroup-v2-patches/README.md
12930+ # when adding a new linux version
12931+ # kernelPatches.cpu-cgroup-v2."4.11"
12932+ kernelPatches.modinst_arg_list_too_long
12933+ ]
12934+ ++ lib.optionals ((platform.kernelArch or null) == "mips")
12935+ [ kernelPatches.mips_fpureg_emu
12936+ kernelPatches.mips_fpu_sigill
12937+ kernelPatches.mips_ext3_n32
12938+ ];
12939+ };
12940+
1292712941 linux_testing = callPackage ../os-specific/linux/kernel/linux-testing.nix {
1292812942 kernelPatches = [
1292912943 kernelPatches.bridge_stp_helper
@@ -13112,7 +13126,7 @@ with pkgs;
1311213126 linux = linuxPackages.kernel;
1311313127
1311413128 # Update this when adding the newest kernel major version!
13115− linuxPackages_latest = linuxPackages_4_14;
13129+ linuxPackages_latest = linuxPackages_4_15;
1311613130 linux_latest = linuxPackages_latest.kernel;
1311713131
1311813132 # Build the kernel modules for the some of the kernels.