git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "kernel: Remove unsupported 3.10, 3.12, 3.14"

This reverts commit 2441e002e26d60e62306ae03a2c0d42fe156f129. The motivation for removing them was not very convincing. Also, we need 3.14 on some Hydra build machines.

commit16acdb45bd6f79b8bb49ff71fa66251538336598 authorEelco Dolstra <eelco.dolstra@logicblox.com> dateThu 19 Nov 2015, 14:08 (11 years ago) parent9fc54f9
5 files changed+84−1
pkgs/build-support/grsecurity/default.nix+1−1 pkgs/os-specific/linux/kernel/linux-3.10.nix+17 pkgs/os-specific/linux/kernel/linux-3.12.nix+17 pkgs/os-specific/linux/kernel/linux-3.14.nix+18 pkgs/top-level/all-packages.nix+31
pkgs/build-support/grsecurity/default.nix+1−1
@@ -32,7 +32,7 @@ let
3232 stable-patch = with pkgs.kernelPatches; grsecurity_stable;
3333
3434 grKernel = if cfg.stable
35− then throw "Grsecurity stable no longer supported due to https://grsecurity.net/announce.php"
35+ then mkKernel pkgs.linux_3_14 stable-patch
3636 else mkKernel pkgs.linux_4_2 test-patch;
3737
3838 ## -- grsecurity configuration ---------------------------------------------
pkgs/os-specific/linux/kernel/linux-3.10.nixnew file+17
@@ -0,0 +1,17 @@
1+{ stdenv, fetchurl, perl, buildLinux, ... } @ args:
2+
3+import ./generic.nix (args // rec {
4+ version = "3.10.92";
5+ extraMeta.branch = "3.10";
6+
7+ src = fetchurl {
8+ url = "mirror://kernel/linux/kernel/v3.x/linux-${version}.tar.xz";
9+ sha256 = "0z0jdix1mfpnnc8cxw7rzpnhxdayckpnrasvxi1qf0dwhcqgk92d";
10+ };
11+
12+ features.iwlwifi = true;
13+ features.efiBootStub = true;
14+ features.needsCifsUtils = true;
15+ features.canDisableNetfilterConntrackHelpers = true;
16+ features.netfilterRPFilter = true;
17+})
pkgs/os-specific/linux/kernel/linux-3.12.nixnew file+17
@@ -0,0 +1,17 @@
1+{ stdenv, fetchurl, perl, buildLinux, ... } @ args:
2+
3+import ./generic.nix (args // rec {
4+ version = "3.12.50";
5+ extraMeta.branch = "3.12";
6+
7+ src = fetchurl {
8+ url = "mirror://kernel/linux/kernel/v3.x/linux-${version}.tar.xz";
9+ sha256 = "1bn07wsrcbg4qgqd4v2810c3qc0ifbcza0fyj8s54yd78g9qj4lj";
10+ };
11+
12+ features.iwlwifi = true;
13+ features.efiBootStub = true;
14+ features.needsCifsUtils = true;
15+ features.canDisableNetfilterConntrackHelpers = true;
16+ features.netfilterRPFilter = true;
17+})
pkgs/os-specific/linux/kernel/linux-3.14.nixnew file+18
@@ -0,0 +1,18 @@
1+{ stdenv, fetchurl, perl, buildLinux, ... } @ args:
2+
3+import ./generic.nix (args // rec {
4+ version = "3.14.56";
5+ # Remember to update grsecurity!
6+ extraMeta.branch = "3.14";
7+
8+ src = fetchurl {
9+ url = "mirror://kernel/linux/kernel/v3.x/linux-${version}.tar.xz";
10+ sha256 = "1ggvjrz51nfhj7amn3v2nd0b0x8dnz68k9cldzl729cqp9gsc3hf";
11+ };
12+
13+ features.iwlwifi = true;
14+ features.efiBootStub = true;
15+ features.needsCifsUtils = true;
16+ features.canDisableNetfilterConntrackHelpers = true;
17+ features.netfilterRPFilter = true;
18+} // (args.argsOverride or {}))
pkgs/top-level/all-packages.nix+31
@@ -9902,6 +9902,33 @@ let
99029902 kernelPatches = [ kernelPatches.bridge_stp_helper ];
99039903 };
99049904
9905+ linux_3_10 = callPackage ../os-specific/linux/kernel/linux-3.10.nix {
9906+ kernelPatches = [ kernelPatches.bridge_stp_helper ]
9907+ ++ lib.optionals ((platform.kernelArch or null) == "mips")
9908+ [ kernelPatches.mips_fpureg_emu
9909+ kernelPatches.mips_fpu_sigill
9910+ kernelPatches.mips_ext3_n32
9911+ ];
9912+ };
9913+
9914+ linux_3_12 = callPackage ../os-specific/linux/kernel/linux-3.12.nix {
9915+ kernelPatches = [ kernelPatches.bridge_stp_helper kernelPatches.crc_regression ]
9916+ ++ lib.optionals ((platform.kernelArch or null) == "mips")
9917+ [ kernelPatches.mips_fpureg_emu
9918+ kernelPatches.mips_fpu_sigill
9919+ kernelPatches.mips_ext3_n32
9920+ ];
9921+ };
9922+
9923+ linux_3_14 = callPackage ../os-specific/linux/kernel/linux-3.14.nix {
9924+ kernelPatches = [ kernelPatches.bridge_stp_helper ]
9925+ ++ lib.optionals ((platform.kernelArch or null) == "mips")
9926+ [ kernelPatches.mips_fpureg_emu
9927+ kernelPatches.mips_fpu_sigill
9928+ kernelPatches.mips_ext3_n32
9929+ ];
9930+ };
9931+
99059932 linux_3_18 = callPackage ../os-specific/linux/kernel/linux-3.18.nix {
99069933 kernelPatches = [ kernelPatches.bridge_stp_helper ]
99079934 ++ lib.optionals ((platform.kernelArch or null) == "mips")
@@ -10105,6 +10132,10 @@ let
1010510132
1010610133 # Build the kernel modules for the some of the kernels.
1010710134 linuxPackages_rpi = linuxPackagesFor pkgs.linux_rpi linuxPackages_rpi;
10135+ linuxPackages_3_10 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_3_10 linuxPackages_3_10);
10136+ linuxPackages_3_10_tuxonice = linuxPackagesFor pkgs.linux_3_10_tuxonice linuxPackages_3_10_tuxonice;
10137+ linuxPackages_3_12 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_3_12 linuxPackages_3_12);
10138+ linuxPackages_3_14 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_3_14 linuxPackages_3_14);
1010810139 linuxPackages_3_18 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_3_18 linuxPackages_3_18);
1010910140 linuxPackages_4_1 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_1 linuxPackages_4_1);
1011010141 linuxPackages_4_2 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_2 linuxPackages_4_2);