@@ -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.