linux: Add 4.15

+34 -2
+18
pkgs/os-specific/linux/kernel/linux-4.15.nix
··· 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 {}))
+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 - 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 + kernelPatches.modinst_arg_list_too_long 12918 + ] 12919 + ++ lib.optionals ((platform.kernelArch or null) == "mips") 12920 + [ kernelPatches.mips_fpureg_emu 12921 + kernelPatches.mips_fpu_sigill 12922 + kernelPatches.mips_ext3_n32 12923 + ]; 12924 + }; 12925 + 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" 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 - linuxPackages_latest = linuxPackages_4_14; 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.