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