-
-
Save samueldr/5d62c2bd9b53ed4623a6e8d0e3c5de81 to your computer and use it in GitHub Desktop.
here magnetophon!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/kernel.nix b/modules/kernel.nix | |
index 46649bb..d80aba3 100644 | |
--- a/modules/kernel.nix | |
+++ b/modules/kernel.nix | |
@@ -148,6 +148,14 @@ in { | |
extraConfig = musnixRealtimeKernelExtraConfig; | |
}; | |
+ linux_4_14_rt = callPackage ../pkgs/os-specific/linux/kernel/linux-4.14-rt.nix { | |
+ kernelPatches = [ kernelPatches.bridge_stp_helper | |
+ kernelPatches.modinst_arg_list_too_long | |
+ realtimePatches.realtimePatch_4_14 | |
+ ]; | |
+ extraConfig = musnixRealtimeKernelExtraConfig; | |
+ }; | |
+ | |
linux_opt = linux.override { | |
extraConfig = musnixStandardKernelExtraConfig; | |
}; | |
@@ -158,9 +166,10 @@ in { | |
linuxPackages_4_9_rt = recurseIntoAttrs (linuxPackagesFor linux_4_9_rt); | |
linuxPackages_4_11_rt = recurseIntoAttrs (linuxPackagesFor linux_4_11_rt); | |
linuxPackages_4_13_rt = recurseIntoAttrs (linuxPackagesFor linux_4_13_rt); | |
+ linuxPackages_4_14_rt = recurseIntoAttrs (linuxPackagesFor linux_4_14_rt); | |
linuxPackages_opt = recurseIntoAttrs (linuxPackagesFor linux_opt); | |
- linuxPackages_latest_rt = linuxPackages_4_13_rt; | |
+ linuxPackages_latest_rt = linuxPackages_4_14_rt; | |
realtimePatches = callPackage ../pkgs/os-specific/linux/kernel/patches.nix { }; | |
}; | |
diff --git a/pkgs/os-specific/linux/kernel/linux-4.14-rt.nix b/pkgs/os-specific/linux/kernel/linux-4.14-rt.nix | |
new file mode 100644 | |
index 0000000..3b870f3 | |
--- /dev/null | |
+++ b/pkgs/os-specific/linux/kernel/linux-4.14-rt.nix | |
@@ -0,0 +1,20 @@ | |
+{ stdenv, fetchurl, hostPlatform, perl, buildLinux, ... } @ args: | |
+ | |
+import <nixpkgs/pkgs/os-specific/linux/kernel/generic.nix> (args // rec { | |
+ kversion = "4.14.3"; | |
+ pversion = "rt5"; | |
+ version = "${kversion}-${pversion}"; | |
+ extraMeta.branch = "4.14"; | |
+ | |
+ src = fetchurl { | |
+ url = "mirror://kernel/linux/kernel/v4.x/linux-${kversion}.tar.xz"; | |
+ sha256 = "0rh3r1ik9xwa3pl5rrqjjbknyc7xnam10jih7v5q5v33pd716a5n"; | |
+ }; | |
+ | |
+ kernelPatches = args.kernelPatches; | |
+ | |
+ features.iwlwifi = true; | |
+ features.efiBootStub = true; | |
+ features.needsCifsUtils = true; | |
+ features.netfilterRPFilter = true; | |
+} // (args.argsOverride or {})) | |
diff --git a/pkgs/os-specific/linux/kernel/patches.nix b/pkgs/os-specific/linux/kernel/patches.nix | |
index 3fb68c7..4b8d192 100644 | |
--- a/pkgs/os-specific/linux/kernel/patches.nix | |
+++ b/pkgs/os-specific/linux/kernel/patches.nix | |
@@ -58,4 +58,11 @@ in rec { | |
pversion = "rt1"; | |
sha256 = "0jmwwy6yf19apqh6m8cc3k16czgjb1vlhg02r78zpxx77w793x2z"; | |
}; | |
+ | |
+ realtimePatch_4_14 = realtimePatch | |
+ { branch = "4.14"; | |
+ kversion = "4.14.3"; | |
+ pversion = "rt5"; | |
+ sha256 = "1yig6kikn1kf26ndhrgjjvq1d1rzlfbybn044d65i2pc7h1nqdrj"; | |
+ }; | |
} |
Author
samueldr
commented
Dec 3, 2017
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment