Skip to content

Commit

Permalink
Makefile: generate header file with the list of devices enabled
Browse files Browse the repository at this point in the history
v2: generate config-devices.h which contains the list of devices enabled

Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Julio Montes <[email protected]>
  • Loading branch information
Julio Montes authored and bonzini committed Jul 5, 2019
1 parent ec7b1bb commit 6c22ea9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile.target
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions scripts/create_config
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ case $line in
name=${line%=*}
echo "#define $name 1"
;;
CONFIG_*=n) # configuration
;;
CONFIG_*=*) # configuration
name=${line%=*}
value=${line#*=}
Expand Down

0 comments on commit 6c22ea9

Please sign in to comment.