]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Makefile: generate header file with the list of devices enabled
authorJulio Montes <julio.montes@intel.com>
Fri, 5 Jul 2019 14:35:53 +0000 (14:35 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Jul 2019 20:19:58 +0000 (22:19 +0200)
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>
Makefile.target
scripts/create_config

index 72c267f7dc0c87df21cb61d1604c4175dd5169ed..7154e99f0a670b0ac49224dfac43fc8667403211 100644 (file)
@@ -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
 
index d727e5e36e1694bdeb1bfb204c2ca47f3a4b6315..00e86c82b07a226e3ef373f6008d7f1343178650 100755 (executable)
@@ -58,6 +58,8 @@ case $line in
     name=${line%=*}
     echo "#define $name 1"
     ;;
+ CONFIG_*=n) # configuration
+    ;;
  CONFIG_*=*) # configuration
     name=${line%=*}
     value=${line#*=}