Skip to content

Commit

Permalink
linux: Add 4.12
Browse files Browse the repository at this point in the history
  • Loading branch information
NeQuissimus committed Jul 3, 2017
1 parent 6685b7a commit f130e00
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkgs/os-specific/linux/kernel/common-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ with stdenv.lib;
KVM_APIC_ARCHITECTURE y
''}
KVM_ASYNC_PF y
${optionalString (versionAtLeast version "4.0") ''
${optionalString ((versionAtLeast version "4.0") && (versionOlder version "4.12")) ''
KVM_COMPAT? y
''}
${optionalString (versionOlder version "4.12") ''
Expand Down
19 changes: 19 additions & 0 deletions pkgs/os-specific/linux/kernel/linux-4.12.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ stdenv, hostPlatform, fetchurl, perl, buildLinux, ... } @ args:

import ./generic.nix (args // rec {
version = "4.12";
modDirVersion = "4.12.0";
extraMeta.branch = "4.12";

src = fetchurl {
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
sha256 = "1asq73lq0f81qwv21agcrpc3694fs14sja26q48y936hskn3np54";
};

kernelPatches = args.kernelPatches;

features.iwlwifi = true;
features.efiBootStub = true;
features.needsCifsUtils = true;
features.netfilterRPFilter = true;
} // (args.argsOverride or {}))
21 changes: 19 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11983,6 +11983,22 @@ with pkgs;
];
};

linux_4_12 = callPackage ../os-specific/linux/kernel/linux-4.12.nix {
kernelPatches =
[ kernelPatches.bridge_stp_helper
kernelPatches.p9_fixes
# See pkgs/os-specific/linux/kernel/cpu-cgroup-v2-patches/README.md
# when adding a new linux version
kernelPatches.cpu-cgroup-v2."4.11"
kernelPatches.modinst_arg_list_too_long
]
++ lib.optionals ((platform.kernelArch or null) == "mips")
[ kernelPatches.mips_fpureg_emu
kernelPatches.mips_fpu_sigill
kernelPatches.mips_ext3_n32
];
};

linux_testing = callPackage ../os-specific/linux/kernel/linux-testing.nix {
kernelPatches = [
kernelPatches.bridge_stp_helper
Expand Down Expand Up @@ -12153,7 +12169,7 @@ with pkgs;
linux = linuxPackages.kernel;

# Update this when adding the newest kernel major version!
linuxPackages_latest = linuxPackages_4_11;
linuxPackages_latest = linuxPackages_4_12;
linux_latest = linuxPackages_latest.kernel;

# Build the kernel modules for the some of the kernels.
Expand All @@ -12164,6 +12180,7 @@ with pkgs;
linuxPackages_4_4 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_4);
linuxPackages_4_9 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_9);
linuxPackages_4_11 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_11);
linuxPackages_4_12 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_12);
# Don't forget to update linuxPackages_latest!

# Intentionally lacks recurseIntoAttrs, as -rc kernels will quite likely break out-of-tree modules and cause failed Hydra builds.
Expand All @@ -12179,7 +12196,7 @@ with pkgs;
linuxPackages_latest_xen_dom0 = recurseIntoAttrs (linuxPackagesFor (pkgs.linux_latest.override { features.xen_dom0=true; }));

# Hardened linux
linux_hardened = let linux = pkgs.linux_4_11; in linux.override {
linux_hardened = let linux = pkgs.linuxPackages_latest.kernel; in linux.override {
extraConfig = import ../os-specific/linux/kernel/hardened-config.nix {
inherit stdenv;
inherit (linux) version;
Expand Down

0 comments on commit f130e00

Please sign in to comment.