Skip to content

Commit 81fceb2

Browse files
NeQuissimusdomenkozar
authored andcommittedJul 4, 2017
linux: Add 4.12
(cherry picked from commit f130e00) Signed-off-by: Domen Kožar <domen@dev.si>
1 parent 72c9ed7 commit 81fceb2

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed
 

‎pkgs/os-specific/linux/kernel/common-config.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ with stdenv.lib;
487487
KVM_APIC_ARCHITECTURE y
488488
''}
489489
KVM_ASYNC_PF y
490-
${optionalString (versionAtLeast version "4.0") ''
490+
${optionalString ((versionAtLeast version "4.0") && (versionOlder version "4.12")) ''
491491
KVM_COMPAT? y
492492
''}
493493
KVM_DEVICE_ASSIGNMENT? y
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{ stdenv, hostPlatform, fetchurl, perl, buildLinux, ... } @ args:
2+
3+
import ./generic.nix (args // rec {
4+
version = "4.12";
5+
modDirVersion = "4.12.0";
6+
extraMeta.branch = "4.12";
7+
8+
src = fetchurl {
9+
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
10+
sha256 = "1asq73lq0f81qwv21agcrpc3694fs14sja26q48y936hskn3np54";
11+
};
12+
13+
kernelPatches = args.kernelPatches;
14+
15+
features.iwlwifi = true;
16+
features.efiBootStub = true;
17+
features.needsCifsUtils = true;
18+
features.netfilterRPFilter = true;
19+
} // (args.argsOverride or {}))

‎pkgs/top-level/all-packages.nix

+18-1
Original file line numberDiff line numberDiff line change
@@ -11397,6 +11397,22 @@ with pkgs;
1139711397
];
1139811398
};
1139911399

11400+
linux_4_12 = callPackage ../os-specific/linux/kernel/linux-4.12.nix {
11401+
kernelPatches =
11402+
[ kernelPatches.bridge_stp_helper
11403+
kernelPatches.p9_fixes
11404+
# See pkgs/os-specific/linux/kernel/cpu-cgroup-v2-patches/README.md
11405+
# when adding a new linux version
11406+
kernelPatches.cpu-cgroup-v2."4.11"
11407+
kernelPatches.modinst_arg_list_too_long
11408+
]
11409+
++ lib.optionals ((platform.kernelArch or null) == "mips")
11410+
[ kernelPatches.mips_fpureg_emu
11411+
kernelPatches.mips_fpu_sigill
11412+
kernelPatches.mips_ext3_n32
11413+
];
11414+
};
11415+
1140011416
linux_testing = callPackage ../os-specific/linux/kernel/linux-testing.nix {
1140111417
kernelPatches = [
1140211418
kernelPatches.bridge_stp_helper
@@ -11574,7 +11590,7 @@ with pkgs;
1157411590
linux = linuxPackages.kernel;
1157511591

1157611592
# Update this when adding the newest kernel major version!
11577-
linuxPackages_latest = linuxPackages_4_11;
11593+
linuxPackages_latest = linuxPackages_4_12;
1157811594
linux_latest = linuxPackages_latest.kernel;
1157911595

1158011596
# Build the kernel modules for the some of the kernels.
@@ -11584,6 +11600,7 @@ with pkgs;
1158411600
linuxPackages_4_4 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_4);
1158511601
linuxPackages_4_9 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_9);
1158611602
linuxPackages_4_11 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_11);
11603+
linuxPackages_4_12 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_12);
1158711604
# Don't forget to update linuxPackages_latest!
1158811605

1158911606
# Intentionally lacks recurseIntoAttrs, as -rc kernels will quite likely break out-of-tree modules and cause failed Hydra builds.

0 commit comments

Comments
 (0)
Please sign in to comment.