mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-05-11 05:19:58 +00:00
VMcfg use Kconfig mechanism to generate a header file devicemodel/include/vmcfg_config.h, which contains many macro symbols for conditionally compiling. This feature is disabled by default, to enable it, You can switch to devicemodel/vmcfg/ and run 'make' with these options: 'make menuconfig' run 'make menuconfig' at ./devicemodel/vmcfg/, and configure manually. When you finished, save your changes to ./devicemode/vmcfg/.config 'make oldconfig' Overwrite ./devicemodel/vmcfg/.config with your config file, then run 'make oldconfig' at ./devicemodel/vmcfg 'make *_defconfig' E.g, there is ./devicemodel/vmcfg/config/mrb_defconfig, you can run 'make mrb_defconfig' at ./devicemodel/vmcfg/ Tracked-On: #1528 Acked-by: Yin Fengwei <fengwei.yin@intel.com> Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
21 lines
652 B
Makefile
21 lines
652 B
Makefile
$(eval $(call check_dep_exec,menuconfig,MENUCONFIG_DEPS))
|
|
|
|
export KCONFIG_CONFIG := $(BASEDIR)/vmcfg/.config
|
|
|
|
.PHONY: oldconfig
|
|
oldconfig:
|
|
@python3 $(BASEDIR)/../scripts/kconfig/silentoldconfig.py Kconfig $(KCONFIG_CONFIG)
|
|
|
|
%_defconfig:
|
|
@python3 $(BASEDIR)/../scripts/kconfig/defconfig.py Kconfig $(BASEDIR)/vmcfg/config/$@ $(KCONFIG_CONFIG)
|
|
|
|
$(KCONFIG_CONFIG): oldconfig
|
|
|
|
$(BASEDIR)/include/vmcfg_config.h: $(KCONFIG_CONFIG)
|
|
echo @mkdir -p $(dir $@)
|
|
@mkdir -p $(dir $@)
|
|
@python3 $(BASEDIR)/../scripts/kconfig/generate_header.py Kconfig $< $@
|
|
|
|
menuconfig: $(MENUCONFIG_DEPS) $(HV_OBJDIR)/$(HV_CONFIG)
|
|
@python3 $(shell which menuconfig) Kconfig
|