diff mbox

[1/2] generate device configuration file header

Message ID 20140530140557.425210031@amt.cnet
State New
Headers show

Commit Message

Marcelo Tosatti May 30, 2014, 2:05 p.m. UTC
Required to use device CONFIG_ options from C code. To be used 
by next patch.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
diff mbox

Patch

Index: qemu/Makefile.target
===================================================================
--- qemu.orig/Makefile.target
+++ qemu/Makefile.target
@@ -37,6 +37,9 @@  STPFILES=
 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
 
@@ -193,5 +196,5 @@  ifdef CONFIG_TRACE_SYSTEMTAP
 	$(INSTALL_DATA) $(QEMU_PROG).stp-installed "$(DESTDIR)$(qemu_datadir)/../systemtap/tapset/$(QEMU_PROG).stp"
 endif
 
-GENERATED_HEADERS += config-target.h
+GENERATED_HEADERS += config-target.h config-devices.h
 Makefile: $(GENERATED_HEADERS)
Index: qemu/monitor.c
===================================================================
--- qemu.orig/monitor.c
+++ qemu/monitor.c
@@ -69,6 +69,7 @@ 
 #include "qmp-commands.h"
 #include "hmp.h"
 #include "qemu/thread.h"
+#include "config-devices.h"
 
 /* for pic/irq_info */
 #if defined(TARGET_SPARC)