Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux: kernel: Add linux-ck for 4.14, 4.19 and 5.0 #59105

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions pkgs/os-specific/linux/kernel/linux-4.14-ck.nix
@@ -0,0 +1,20 @@
{ stdenv, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args:

with stdenv.lib;

buildLinux (args // rec {
version = "4.14.0-ck1";

# modDirVersion needs to be x.y.z, will automatically add .0 if needed

# branchVersion needs to be x.y
extraMeta.branch = concatStrings (intersperse "." (take 2 (splitString "." version)));

src = args.fetchFromGitHub {
owner = "ckolivas";
repo = "linux";
rev = "4.14-ck";
sha256 = "12v1y4rld79pwc7nfg1sq2sh0xphsl5bd54iklj2qhk4h19z46iy";
};
} // (args.argsOverride or {}))

19 changes: 19 additions & 0 deletions pkgs/os-specific/linux/kernel/linux-4.19-ck.nix
@@ -0,0 +1,19 @@
{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, modDirVersionArg ? null, ... } @ args:

with stdenv.lib;

buildLinux (args // rec {
version = "4.19.0-ck1";

# modDirVersion needs to be x.y.z, will automatically add .0 if needed

# branchVersion needs to be x.y
extraMeta.branch = concatStrings (intersperse "." (take 2 (splitString "." version)));

src = args.fetchFromGitHub {
owner = "ckolivas";
repo = "linux";
rev = "4.19-ck";
sha256 = "12vmy4rld79pwc7nfg1sq2sh0xphsl5bd54iklj2qhk4h19z46iy";
};
} // (args.argsOverride or {}))
20 changes: 20 additions & 0 deletions pkgs/os-specific/linux/kernel/linux-5.0-ck.nix
@@ -0,0 +1,20 @@
{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, modDirVersionArg ? null, ... } @ args:

with stdenv.lib;

buildLinux (args // rec {
version = "5.0.0-ck1";

# modDirVersion needs to be x.y.z, will automatically add .0 if needed

# branchVersion needs to be x.y
extraMeta.branch = concatStrings (intersperse "." (take 2 (splitString "." version)));

src = args.fetchFromGitHub {
owner = "ckolivas";
repo = "linux";
rev = "5.0-ck";
sha256 = "121my4r1d79pwc7nfg1sq2sh0xphsl5bd54iklj2qhk4h19z46iy";
};
} // (args.argsOverride or {}))

21 changes: 21 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -15172,13 +15172,27 @@ in
];
};

linux_4_14_ck = callPackage ../os-specific/linux/kernel/linux-4.14-ck.nix {
kernelPatches =
[ kernelPatches.bridge_stp_helper
kernelPatches.modinst_arg_list_too_long
];
};

linux_4_19 = callPackage ../os-specific/linux/kernel/linux-4.19.nix {
kernelPatches =
[ kernelPatches.bridge_stp_helper
kernelPatches.modinst_arg_list_too_long
];
};

linux_4_19_ck = callPackage ../os-specific/linux/kernel/linux-4.19-ck.nix {
kernelPatches =
[ kernelPatches.bridge_stp_helper
kernelPatches.modinst_arg_list_too_long
];
};

linux_5_0 = callPackage ../os-specific/linux/kernel/linux-5.0.nix {
kernelPatches =
[ kernelPatches.bridge_stp_helper
Expand All @@ -15195,6 +15209,13 @@ in
];
};

linux_5_0_ck = callPackage ../os-specific/linux/kernel/linux-5.0-ck.nix {
kernelPatches =
[ kernelPatches.bridge_stp_helper
kernelPatches.modinst_arg_list_too_long
];
};

linux_testing = callPackage ../os-specific/linux/kernel/linux-testing.nix {
kernelPatches = [
kernelPatches.bridge_stp_helper
Expand Down