From 86e1d113da0a20481a63febd51c7a613985a113f Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Wed, 7 Oct 2009 02:41:07 +0200 Subject: [PATCH] Only compile qdev_addr when one target uses it Patchworks-ID: 35201 Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- Makefile.hw | 3 ++- default-configs/sparc-softmmu.mak | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.hw b/Makefile.hw index 2b4ef03e0a..ba2d390515 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 2e0e621946..dc5183963b 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