2018-08-14 23:04:15 +08:00
|
|
|
$(eval $(call check_dep_exec,menuconfig,MENUCONFIG_DEPS))
|
|
|
|
|
2018-10-23 16:51:06 +08:00
|
|
|
export KCONFIG_CONFIG := $(DM_OBJDIR)/vmcfg/.config
|
2018-08-14 23:04:15 +08:00
|
|
|
|
|
|
|
.PHONY: oldconfig
|
|
|
|
oldconfig:
|
2018-10-23 16:51:06 +08:00
|
|
|
mkdir -p $(dir $(KCONFIG_CONFIG))
|
|
|
|
@python3 $(BASEDIR)/../scripts/kconfig/silentoldconfig.py Kconfig $(KCONFIG_CONFIG)
|
2018-08-14 23:04:15 +08:00
|
|
|
|
|
|
|
%_defconfig:
|
2018-10-23 16:51:06 +08:00
|
|
|
mkdir -p $(dir $(KCONFIG_CONFIG))
|
|
|
|
@python3 $(BASEDIR)/../scripts/kconfig/defconfig.py Kconfig $(BASEDIR)/vmcfg/config/$@ $(KCONFIG_CONFIG)
|
2018-08-14 23:04:15 +08:00
|
|
|
|
|
|
|
$(KCONFIG_CONFIG): oldconfig
|
|
|
|
|
2018-10-23 16:51:06 +08:00
|
|
|
$(DM_OBJDIR)/include/vmcfg_config.h: $(KCONFIG_CONFIG)
|
2018-08-14 23:04:15 +08:00
|
|
|
echo @mkdir -p $(dir $@)
|
|
|
|
@mkdir -p $(dir $@)
|
|
|
|
@python3 $(BASEDIR)/../scripts/kconfig/generate_header.py Kconfig $< $@
|
|
|
|
|
2018-10-23 16:51:06 +08:00
|
|
|
menuconfig: $(MENUCONFIG_DEPS) $(HV_OBJDIR)/$(HV_CONFIG) $(KCONFIG_CONFIG)
|
|
|
|
@python3 $(shell which menuconfig) Kconfig $(KCONFIG_CONFIG)
|