Patchwork [11/31] Only compile qdev_addr when one target uses it

login
register
mail settings
Submitter Juan Quintela
Date Oct. 7, 2009, 12:41 a.m.
Message ID <efb8cdf486fec8f7a6590c248ab3014c149e0364.1254875337.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/35201/
State Accepted
Commit 86e1d113da0a20481a63febd51c7a613985a113f
Headers show

Comments

Juan Quintela - Oct. 7, 2009, 12:41 a.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 Makefile.hw                       |    3 ++-
 default-configs/sparc-softmmu.mak |    2 ++
 2 files changed, 4 insertions(+), 1 deletions(-)

Patch

diff --git a/Makefile.hw b/Makefile.hw
index 2b4ef03..ba2d390 100644
--- a/Makefile.hw
+++ b/Makefile.hw
@@ -31,7 +31,8 @@  obj-y += ne2000.o
 # SCSI layer
 obj-y += lsi53c895a.o esp.o

-obj-y += dma-helpers.o sysbus.o qdev-addr.o isa-bus.o
+obj-y += dma-helpers.o sysbus.o isa-bus.o
+obj-$(CONFIG_QDEV_ADDR) += qdev-addr.o

 all: $(HWLIB)
 # Dummy command so that make thinks it has done something
diff --git a/default-configs/sparc-softmmu.mak b/default-configs/sparc-softmmu.mak
index 2e0e621..dc51839 100644
--- a/default-configs/sparc-softmmu.mak
+++ b/default-configs/sparc-softmmu.mak
@@ -1 +1,3 @@ 
 # Default configuration for sparc-softmmu
+
+CONFIG_QDEV_ADDR=y