Makefile: generate header file with the list of devices enabled
v2: generate config-devices.h which contains the list of devices enabled Message-Id: <20190705143554.10295-1-julio.montes@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
ec7b1bbd2c
commit
6c22ea9d83
|
@ -45,6 +45,9 @@ include $(SRC_PATH)/tests/tcg/Makefile.include
|
||||||
config-target.h: config-target.h-timestamp
|
config-target.h: config-target.h-timestamp
|
||||||
config-target.h-timestamp: config-target.mak
|
config-target.h-timestamp: config-target.mak
|
||||||
|
|
||||||
|
config-devices.h: config-devices.h-timestamp
|
||||||
|
config-devices.h-timestamp: config-devices.mak
|
||||||
|
|
||||||
ifdef CONFIG_TRACE_SYSTEMTAP
|
ifdef CONFIG_TRACE_SYSTEMTAP
|
||||||
stap: $(QEMU_PROG).stp-installed $(QEMU_PROG).stp $(QEMU_PROG)-simpletrace.stp $(QEMU_PROG)-log.stp
|
stap: $(QEMU_PROG).stp-installed $(QEMU_PROG).stp $(QEMU_PROG)-simpletrace.stp $(QEMU_PROG)-log.stp
|
||||||
|
|
||||||
|
@ -168,6 +171,7 @@ obj-y += hw/$(TARGET_BASE_ARCH)/
|
||||||
endif
|
endif
|
||||||
|
|
||||||
generated-files-y += hmp-commands.h hmp-commands-info.h
|
generated-files-y += hmp-commands.h hmp-commands-info.h
|
||||||
|
generated-files-y += config-devices.h
|
||||||
|
|
||||||
endif # CONFIG_SOFTMMU
|
endif # CONFIG_SOFTMMU
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,8 @@ case $line in
|
||||||
name=${line%=*}
|
name=${line%=*}
|
||||||
echo "#define $name 1"
|
echo "#define $name 1"
|
||||||
;;
|
;;
|
||||||
|
CONFIG_*=n) # configuration
|
||||||
|
;;
|
||||||
CONFIG_*=*) # configuration
|
CONFIG_*=*) # configuration
|
||||||
name=${line%=*}
|
name=${line%=*}
|
||||||
value=${line#*=}
|
value=${line#*=}
|
||||||
|
|
Loading…
Reference in a new issue