diff mbox

[13/15] configure qdev-addr.o only for sparc softmmu

Message ID 7ff0e640f978d5180b5c08d2ba2e2111265235ea.1251113142.git.quintela@redhat.com
State Superseded
Headers show

Commit Message

Juan Quintela Aug. 24, 2009, 11:29 a.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 Makefile.hw |    4 ++--
 configure   |    6 ++++++
 2 files changed, 8 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/Makefile.hw b/Makefile.hw
index 7be5e5b..cd5fb92 100644
--- a/Makefile.hw
+++ b/Makefile.hw
@@ -23,8 +23,8 @@  obj-$(CONFIG_ESCC) += escc.o
 obj-y += lsi53c895a.o
 obj-$(CONFIG_ESP) += esp.o

-obj-y += dma-helpers.o sysbus.o qdev-addr.o
-
+obj-y += dma-helpers.o sysbus.o
+obj-$(CONFIG_TADDR) += qdev-addr.o
 all: $(HWLIB)
 # Dummy command so that make thinks it has done something
 	@true
diff --git a/configure b/configure
index c370d83..a846428 100755
--- a/configure
+++ b/configure
@@ -1825,6 +1825,7 @@  escc=no
 esp=no
 ecc_flash=no
 nand=no
+taddr=no

 for target in $target_list; do
 target_dir="$target"
@@ -2064,6 +2065,7 @@  if test "$target_softmmu" = "yes" ; then
     m48t59=yes
     escc=yes
     ecc_flash=yes
+    taddr=yes
   ;;
   sparc64)
     ptimer=yes
@@ -2314,6 +2316,10 @@  if test "$nand" = "yes" ; then
     echo "CONFIG_NAND=y" >> $config_host_mak
 fi

+if test "$taddr" = "yes" ; then
+    echo "CONFIG_TADDR=y" >> $config_host_mak
+fi
+
 echo "/* Automatically generated by configure - do not modify */" > $config_host_h

 /bin/sh $source_path/create_config < $config_host_mak >> $config_host_h