mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 01:54:44 +00:00
DM: VMcfg: Kconfig & Makefile for VM Configuration
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>
This commit is contained in:
committed by
wenlingz
parent
4ce80e5ccc
commit
646cc8c4b2
20
devicemodel/vmcfg/scripts/kconfig/kconfig.mk
Normal file
20
devicemodel/vmcfg/scripts/kconfig/kconfig.mk
Normal file
@@ -0,0 +1,20 @@
|
||||
$(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
|
||||
Reference in New Issue
Block a user