Merge pull request #94027 from Atemu/zen-kernel-init

linux_zen: init at 5.7.10
This commit is contained in:
Michael Raskin 2020-08-16 10:06:56 +00:00 committed by GitHub
commit 657f6129b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,23 @@
{ stdenv, fetchFromGitHub, buildLinux, ... } @ args:
let
version = "5.7.10";
in
buildLinux (args // {
modDirVersion = "${version}-zen1";
inherit version;
src = fetchFromGitHub {
owner = "zen-kernel";
repo = "zen-kernel";
rev = "v${version}-zen1";
sha256 = "0m9abjs7xv80zgk5qx7iimxaycif8dlr0g0kzkjyaw9mxji6gp37";
};
extraMeta = {
branch = "5.7/master";
maintainers = with stdenv.lib.maintainers; [ atemu ];
};
} // (args.argsOverride or {}))

View File

@ -17421,6 +17421,14 @@ in
];
};
linux_zen = callPackage ../os-specific/linux/kernel/linux-zen.nix {
kernelPatches = [
kernelPatches.bridge_stp_helper
kernelPatches.request_key_helper
kernelPatches.export_kernel_fpu_functions."5.3"
];
};
/* Linux kernel modules are inherently tied to a specific kernel. So
rather than provide specific instances of those packages for a
specific kernel, we have a function that builds those packages
@ -17701,6 +17709,9 @@ in
linuxPackages_latest-libre = recurseIntoAttrs (linuxPackagesFor linux_latest-libre);
linux_latest-libre = linux-libre.override { linux = linux_latest; };
# zen-kernel
linuxPackages_zen = recurseIntoAttrs (linuxPackagesFor pkgs.linux_zen);
# A function to build a manually-configured kernel
linuxManualConfig = makeOverridable (callPackage ../os-specific/linux/kernel/manual-config.nix {});