Patchwork [10/30] Only compile qdev_addr when one target uses it

login
register
mail settings
Submitter Juan Quintela
Date Aug. 27, 2009, 7:17 p.m.
Message ID <9d5389d5b571d696de76329d055bbb441082fcbc.1251399960.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/32286/
State Superseded
Headers show

Comments

Juan Quintela - Aug. 27, 2009, 7:17 p.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 b48d1af..7f3a56a 100644
--- a/Makefile.hw
+++ b/Makefile.hw
@@ -22,7 +22,8 @@  obj-y += m48t59.o escc.o
 # SCSI layer
 obj-y += lsi53c895a.o esp.o

-obj-y += dma-helpers.o sysbus.o qdev-addr.o
+obj-y += dma-helpers.o sysbus.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