From fea71f84d0c1c7bc6da80d70a639e1e443ef24a8 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Mon, 20 Feb 2017 06:47:49 -0500 Subject: [PATCH] linux 4.10 --- .../linux/kernel/common-config.nix | 4 ++-- pkgs/os-specific/linux/kernel/linux-4.10.nix | 19 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 19 ++++++++++++++++++- 3 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 pkgs/os-specific/linux/kernel/linux-4.10.nix diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 40c49509fd0..9cc4027903e 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -188,7 +188,7 @@ with stdenv.lib; DRM_AMD_POWERPLAY y # necessary for amdgpu polaris support ''} ${optionalString (versionAtLeast version "4.9") '' - DRM_AMDGPU_SI y # (experimental) amdgpu support for verde and newer chipsets + DRM_AMDGPU_SI? y # (experimental) amdgpu support for verde and newer chipsets DRM_AMDGPU_CIK y # (stable) amdgpu support for bonaire and newer chipsets ''} @@ -229,7 +229,7 @@ with stdenv.lib; EXT3_FS_POSIX_ACL y EXT3_FS_SECURITY y EXT4_FS_POSIX_ACL y - EXT4_ENCRYPTION? ${if versionOlder version "4.8" then "m" else "y"} + EXT4_ENCRYPTION? ${if (versionOlder version "4.8") || (versionAtLeast version "4.10") then "m" else "y"} EXT4_FS_SECURITY y REISERFS_FS_XATTR? y REISERFS_FS_POSIX_ACL? y diff --git a/pkgs/os-specific/linux/kernel/linux-4.10.nix b/pkgs/os-specific/linux/kernel/linux-4.10.nix new file mode 100644 index 00000000000..a556d2dc24d --- /dev/null +++ b/pkgs/os-specific/linux/kernel/linux-4.10.nix @@ -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 = "4ac22e4a619417213cfdab24714413bb9118fbaebe6012c6c89c279cdadef2ce"; + }; + + kernelPatches = args.kernelPatches; + + features.iwlwifi = true; + features.efiBootStub = true; + features.needsCifsUtils = true; + features.netfilterRPFilter = true; +} // (args.argsOverride or {})) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e7ee4d85638..273d187d67e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 @@ -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. @@ -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.