Skip to content

Commit

Permalink
linux 4.10
Browse files Browse the repository at this point in the history
  • Loading branch information
shlevy committed Feb 20, 2017
1 parent b191ac0 commit f454297
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
19 changes: 19 additions & 0 deletions pkgs/os-specific/linux/kernel/linux-4.10.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ stdenv, fetchurl, perl, buildLinux, ... } @ args:

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

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

kernelPatches = args.kernelPatches;

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

linux_4_10 = callPackage ../os-specific/linux/kernel/linux-4.10.nix {
kernelPatches =
[ kernelPatches.bridge_stp_helper
# See pkgs/os-specific/linux/kernel/cpu-cgroup-v2-patches/README.md
# when adding a new linux version
# !!! 4.7 patch doesn't apply, 4.9 patch not up yet, will keep checking
# kernelPatches.cpu-cgroup-v2."4.7"
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 @@ -11506,7 +11522,7 @@ with pkgs;
linux = linuxPackages.kernel;

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

# Build the kernel modules for the some of the kernels.
Expand All @@ -11517,6 +11533,7 @@ with pkgs;
linuxPackages_4_1 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_1);
linuxPackages_4_4 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_4);
linuxPackages_4_9 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_9);
linuxPackages_4_10 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_10);
# 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 Down

0 comments on commit f454297

Please sign in to comment.