tools: vmcfg: use defconfig instead of default values in Kconfig

The current vmcfg uses the default values in Kconfig when a previous .config
does not exist. This leads to additional complexity to silentoldconfig.py which
has different logic depending on the environment variable 'BOARD'. This also
blocks the effort to make the top-level Makefile recognize BOARD because any
environment variable set in the top-level Makefile cascades to the other
Makefiles, leading the work around above to fail.

This patch introduces a generic defconfig for vmcfg and simplifies
silentoldconfig.py to always fail when neither .config nor the specified
defconfig exists.

Tracked-On: #1995
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Signed-off-by: Tw <wei.tan@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@intel.com>
Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
Junjie Mao
2018-11-08 21:28:11 +08:00
committed by wenlingz
parent ed1c576d08
commit 064a31067f
3 changed files with 30 additions and 26 deletions

View File

@@ -1,3 +1,8 @@
config DEFCONFIG_LIST
string
option defconfig_list
default "apl-mrb/vm1/configs/default.config"
menuconfig MRB_VM1
bool "Build-in VM1 configuration for MRB"
default n

View File

@@ -0,0 +1,2 @@
# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib)
# CONFIG_VM_CFG is not set