mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 04:25:14 +00:00
linux-copperhead: LTS based on regular 4.14
This commit is contained in:
parent
7eb169a257
commit
a444dcad03
2864
pkgs/os-specific/linux/kernel/copperhead-4-14.patch
Normal file
2864
pkgs/os-specific/linux/kernel/copperhead-4-14.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,13 @@
|
||||
{ stdenv, buildPackages, hostPlatform, fetchurl, perl, buildLinux, ... } @ args:
|
||||
{ stdenv, buildPackages, hostPlatform, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
buildLinux (args // rec {
|
||||
version = "4.14.48";
|
||||
|
||||
# modDirVersion needs to be x.y.z, will automatically add .0 if needed
|
||||
modDirVersion = if (modDirVersionArg == null) then concatStrings (intersperse "." (take 3 (splitString "." "${version}.0"))) else modDirVersionArg;
|
||||
|
||||
# branchVersion needs to be x.y
|
||||
extraMeta.branch = concatStrings (intersperse "." (take 2 (splitString "." version)));
|
||||
|
||||
|
@ -28,6 +28,11 @@ rec {
|
||||
patch = ./tag-hardened.patch;
|
||||
};
|
||||
|
||||
copperhead_4_14 = rec {
|
||||
name = "copperhead-4.14";
|
||||
patch = ./copperhead-4-14.patch;
|
||||
};
|
||||
|
||||
copperhead_4_16 = rec {
|
||||
name = "copperhead-4.16";
|
||||
patch = ./copperhead-4-16.patch;
|
||||
|
@ -13499,13 +13499,13 @@ with pkgs;
|
||||
];
|
||||
};
|
||||
|
||||
linux_copperhead_lts = callPackage ../os-specific/linux/kernel/linux-copperhead-lts.nix {
|
||||
kernelPatches = with kernelPatches; [
|
||||
bridge_stp_helper
|
||||
modinst_arg_list_too_long
|
||||
tag_hardened
|
||||
];
|
||||
};
|
||||
linux_copperhead_lts = (linux_4_14.override {
|
||||
kernelPatches = linux_4_14.kernelPatches ++ [
|
||||
kernelPatches.copperhead_4_14
|
||||
kernelPatches.tag_hardened
|
||||
];
|
||||
modDirVersionArg = linux_4_14.modDirVersion + "-hardened";
|
||||
});
|
||||
|
||||
linux_copperhead_stable = (linux_4_16.override {
|
||||
kernelPatches = linux_4_16.kernelPatches ++ [
|
||||
|
Loading…
Reference in New Issue
Block a user