Only compile qdev_addr when one target uses it
authorJuan Quintela <quintela@redhat.com>
Wed, 7 Oct 2009 00:41:07 +0000 (02:41 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 9 Oct 2009 02:17:11 +0000 (21:17 -0500)
Patchworks-ID: 35201
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Makefile.hw
default-configs/sparc-softmmu.mak

index 2b4ef03e0acfe1e826c51cc9c52db1da8b98f1b2..ba2d390515f9a4833cbf607204d73ab14e23f056 100644 (file)
@@ -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
index 2e0e621946f311c8c855d80cd4ac89d1db6cc4d4..dc5183963b689015c43621233b922b45dc31784a 100644 (file)
@@ -1 +1,3 @@
 # Default configuration for sparc-softmmu
+
+CONFIG_QDEV_ADDR=y