Merge pull request #222578 from goertzenator/linuxconfig_patches
This commit is contained in:
commit
c7a3a7070e
1 changed files with 2 additions and 0 deletions
|
@ -649,6 +649,7 @@ in {
|
|||
# Derive one of the default .config files
|
||||
linuxConfig = {
|
||||
src,
|
||||
kernelPatches ? [],
|
||||
version ? (builtins.parseDrvName src.name).version,
|
||||
makeTarget ? "defconfig",
|
||||
name ? "kernel.config",
|
||||
|
@ -656,6 +657,7 @@ in {
|
|||
inherit name src;
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ]
|
||||
++ lib.optionals (lib.versionAtLeast version "4.16") [ buildPackages.bison buildPackages.flex ];
|
||||
patches = map (p: p.patch) kernelPatches; # Patches may include new configs.
|
||||
postPatch = ''
|
||||
patchShebangs scripts/
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue