git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "Revert "Linux 4.8""

Now featuring @aszlig's modinst_arg_list_too_long patch. This reverts commit 43bedb970d7518794f8e82ffffce23952c06083f. Fixes #19213

commite54313d183ff04d722241ad137367d9fd1f6af4c authorShea Levy <shea@shealevy.com> dateTue 4 Oct 2016, 10:10 (10 years ago) parent0e540d2
2 files changed+37−2
pkgs/os-specific/linux/kernel/linux-4.8.nix+20 pkgs/top-level/all-packages.nix+17−2
pkgs/os-specific/linux/kernel/linux-4.8.nixnew file+20
@@ -0,0 +1,20 @@
1+{ stdenv, fetchurl, perl, buildLinux, ... } @ args:
2+
3+import ./generic.nix (args // rec {
4+ version = "4.8";
5+ modDirVersion = "4.8.0";
6+ extraMeta.branch = "4.8";
7+
8+ src = fetchurl {
9+ url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
10+ sha256 = "3e9150065f193d3d94bcf46a1fe9f033c7ef7122ab71d75a7fb5a2f0c9a7e11a";
11+ };
12+
13+ kernelPatches = args.kernelPatches;
14+
15+ features.iwlwifi = true;
16+ features.efiBootStub = true;
17+ features.needsCifsUtils = true;
18+ features.canDisableNetfilterConntrackHelpers = true;
19+ features.netfilterRPFilter = true;
20+} // (args.argsOverride or {}))
pkgs/top-level/all-packages.nix+17−2
@@ -10762,7 +10762,21 @@ in
1076210762 ];
1076310763 };
1076410764
10765− /* See https://github.com/NixOS/nixpkgs/issues/19213 before adding Linux 4.8 */
10765+ linux_4_8 = callPackage ../os-specific/linux/kernel/linux-4.8.nix {
10766+ kernelPatches =
10767+ [ kernelPatches.bridge_stp_helper
10768+ # See pkgs/os-specific/linux/kernel/cpu-cgroup-v2-patches/README.md
10769+ # when adding a new linux version
10770+ # !!! 4.7 patch doesn't apply, 4.8 patch not up yet, will keep checking
10771+ # kernelPatches.cpu-cgroup-v2."4.7"
10772+ kernelPatches.modinst_arg_list_too_long
10773+ ]
10774+ ++ lib.optionals ((platform.kernelArch or null) == "mips")
10775+ [ kernelPatches.mips_fpureg_emu
10776+ kernelPatches.mips_fpu_sigill
10777+ kernelPatches.mips_ext3_n32
10778+ ];
10779+ };
1076610780
1076710781 linux_testing = callPackage ../os-specific/linux/kernel/linux-testing.nix {
1076810782 kernelPatches = [
@@ -10921,7 +10935,7 @@ in
1092110935 linux = linuxPackages.kernel;
1092210936
1092310937 # Update this when adding the newest kernel major version!
10924− linuxPackages_latest = linuxPackages_4_7;
10938+ linuxPackages_latest = linuxPackages_4_8;
1092510939 linux_latest = linuxPackages_latest.kernel;
1092610940
1092710941 # Build the kernel modules for the some of the kernels.
@@ -10934,6 +10948,7 @@ in
1093410948 linuxPackages_4_1 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_1 linuxPackages_4_1);
1093510949 linuxPackages_4_4 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_4 linuxPackages_4_4);
1093610950 linuxPackages_4_7 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_7 linuxPackages_4_7);
10951+ linuxPackages_4_8 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_8 linuxPackages_4_8);
1093710952 # Don't forget to update linuxPackages_latest!
1093810953
1093910954 # Intentionally lacks recurseIntoAttrs, as -rc kernels will quite likely break out-of-tree modules and cause failed Hydra builds.