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
|
# Derive one of the default .config files
|
||||||
linuxConfig = {
|
linuxConfig = {
|
||||||
src,
|
src,
|
||||||
|
kernelPatches ? [],
|
||||||
version ? (builtins.parseDrvName src.name).version,
|
version ? (builtins.parseDrvName src.name).version,
|
||||||
makeTarget ? "defconfig",
|
makeTarget ? "defconfig",
|
||||||
name ? "kernel.config",
|
name ? "kernel.config",
|
||||||
|
@ -656,6 +657,7 @@ in {
|
||||||
inherit name src;
|
inherit name src;
|
||||||
depsBuildBuild = [ buildPackages.stdenv.cc ]
|
depsBuildBuild = [ buildPackages.stdenv.cc ]
|
||||||
++ lib.optionals (lib.versionAtLeast version "4.16") [ buildPackages.bison buildPackages.flex ];
|
++ lib.optionals (lib.versionAtLeast version "4.16") [ buildPackages.bison buildPackages.flex ];
|
||||||
|
patches = map (p: p.patch) kernelPatches; # Patches may include new configs.
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs scripts/
|
patchShebangs scripts/
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue