kernel: Allow kernel packages to specify a custom default defconfig

This commit is contained in:
Tuomas Tynkkynen 2017-11-03 15:49:51 +02:00 committed by Tuomas Tynkkynen
parent 5b468ea6b1
commit 87a68c455e

View file

@ -12,6 +12,9 @@
, # The kernel version.
version
, # Allows overriding the default defconfig
defconfig ? null
, # Overrides to the kernel config.
extraConfig ? ""
@ -85,7 +88,7 @@ let
platformName = hostPlatform.platform.name;
# e.g. "defconfig"
kernelBaseConfig = hostPlatform.platform.kernelBaseConfig;
kernelBaseConfig = if defconfig != null then defconfig else hostPlatform.platform.kernelBaseConfig;
# e.g. "bzImage"
kernelTarget = hostPlatform.platform.kernelTarget;