Merge pull request #222578 from goertzenator/linuxconfig_patches

This commit is contained in:
Bernardo Meurer 2023-03-28 09:24:50 -03:00 committed by GitHub
commit c7a3a7070e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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/
'';