tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
linux: Add 4.15
Tim Steinbach
8 years ago
61043ad4
da26e920
+34
-2
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
kernel
linux-4.15.nix
top-level
all-packages.nix
+18
pkgs/os-specific/linux/kernel/linux-4.15.nix
···
1
1
+
{ stdenv, buildPackages, hostPlatform, fetchurl, perl, buildLinux, ... } @ args:
2
2
+
3
3
+
with stdenv.lib;
4
4
+
5
5
+
import ./generic.nix (args // rec {
6
6
+
version = "4.15";
7
7
+
8
8
+
# modDirVersion needs to be x.y.z, will automatically add .0 if needed
9
9
+
modDirVersion = concatStrings (intersperse "." (take 3 (splitString "." "${version}.0")));
10
10
+
11
11
+
# branchVersion needs to be x.y
12
12
+
extraMeta.branch = concatStrings (intersperse "." (take 2 (splitString "." version)));
13
13
+
14
14
+
src = fetchurl {
15
15
+
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
16
16
+
sha256 = "0sd7l9n9h7vf9c6gd6ciji28hawda60yj0llh17my06m0s4lf9js";
17
17
+
};
18
18
+
} // (args.argsOverride or {}))
+16
-2
pkgs/top-level/all-packages.nix
···
12837
12837
kernelPatches = with kernelPatches; [
12838
12838
kernelPatches.bridge_stp_helper
12839
12839
kernelPatches.modinst_arg_list_too_long
12840
12840
-
kernelPatches.cpu-cgroup-v2."4.11"
12841
12840
kernelPatches.tag_hardened
12842
12841
];
12843
12842
extraConfig = import ../os-specific/linux/kernel/hardened-config.nix {
···
12915
12914
# See pkgs/os-specific/linux/kernel/cpu-cgroup-v2-patches/README.md
12916
12915
# when adding a new linux version
12917
12916
kernelPatches.cpu-cgroup-v2."4.11"
12917
12917
+
kernelPatches.modinst_arg_list_too_long
12918
12918
+
]
12919
12919
+
++ lib.optionals ((platform.kernelArch or null) == "mips")
12920
12920
+
[ kernelPatches.mips_fpureg_emu
12921
12921
+
kernelPatches.mips_fpu_sigill
12922
12922
+
kernelPatches.mips_ext3_n32
12923
12923
+
];
12924
12924
+
};
12925
12925
+
12926
12926
+
linux_4_15 = callPackage ../os-specific/linux/kernel/linux-4.15.nix {
12927
12927
+
kernelPatches =
12928
12928
+
[ kernelPatches.bridge_stp_helper
12929
12929
+
# See pkgs/os-specific/linux/kernel/cpu-cgroup-v2-patches/README.md
12930
12930
+
# when adding a new linux version
12931
12931
+
# kernelPatches.cpu-cgroup-v2."4.11"
12918
12932
kernelPatches.modinst_arg_list_too_long
12919
12933
]
12920
12934
++ lib.optionals ((platform.kernelArch or null) == "mips")
···
13112
13126
linux = linuxPackages.kernel;
13113
13127
13114
13128
# Update this when adding the newest kernel major version!
13115
13115
-
linuxPackages_latest = linuxPackages_4_14;
13129
13129
+
linuxPackages_latest = linuxPackages_4_15;
13116
13130
linux_latest = linuxPackages_latest.kernel;
13117
13131
13118
13132
# Build the kernel modules for the some of the kernels.