Merge pull request #54977 from teto/kernel_fix

linux: (re)take into account extraConfig
This commit is contained in:
Joachim F 2019-01-31 19:46:11 +00:00 committed by GitHub
commit bc84a22989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,10 +73,10 @@ let
features = kernelFeatures; # Ensure we know of all extra patches, etc. features = kernelFeatures; # Ensure we know of all extra patches, etc.
}; };
# extra config in legacy string format intermediateNixConfig = configfile.moduleStructuredConfig.intermediateNixConfig
extraConfig = extraConfig + lib.optionalString (stdenv.hostPlatform.platform ? kernelExtraConfig) stdenv.hostPlatform.platform.kernelExtraConfig; # extra config in legacy string format
+ extraConfig
intermediateNixConfig = configfile.moduleStructuredConfig.intermediateNixConfig; + lib.optionalString (stdenv.hostPlatform.platform ? kernelExtraConfig) stdenv.hostPlatform.platform.kernelExtraConfig;
structuredConfigFromPatches = structuredConfigFromPatches =
map ({extraStructuredConfig ? {}, ...}: {settings=extraStructuredConfig;}) kernelPatches; map ({extraStructuredConfig ? {}, ...}: {settings=extraStructuredConfig;}) kernelPatches;