Commit 6c22ea9d authored by Julio Montes's avatar Julio Montes Committed by Paolo Bonzini
Browse files

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: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarJulio Montes <julio.montes@intel.com>
parent ec7b1bbd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -45,6 +45,9 @@ include $(SRC_PATH)/tests/tcg/Makefile.include
config-target.h: config-target.h-timestamp
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
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

generated-files-y += hmp-commands.h hmp-commands-info.h
generated-files-y += config-devices.h

endif # CONFIG_SOFTMMU

+2 −0
Original line number Diff line number Diff line
@@ -58,6 +58,8 @@ case $line in
    name=${line%=*}
    echo "#define $name 1"
    ;;
 CONFIG_*=n) # configuration
    ;;
 CONFIG_*=*) # configuration
    name=${line%=*}
    value=${line#*=}