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

login
register
mail settings
Submitter Juan Quintela
Date Aug. 20, 2009, 11:37 p.m.
Message ID <08a3fcc0dfa99ea684784f5fe57323f18a03f2c0.1250810973.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/31795/
State Superseded
Headers show

Comments

Juan Quintela - Aug. 20, 2009, 11:37 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 Makefile.hw |    4 ++--
 configure   |    6 ++++++
 2 files changed, 8 insertions(+), 2 deletions(-)

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 e351d34..7fa9a7a 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)
     m48t59=yes
@@ -2313,6 +2315,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