Patchwork [08/14] configure m48t59 only for sparc* and ppc softmmu

login
register
mail settings
Submitter Juan Quintela
Date Aug. 20, 2009, 11:37 p.m.
Message ID <033cc533707497b97307685bb6aa0b08ecf00770.1250810973.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/31790/
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   |   12 ++++++++++++
 2 files changed, 14 insertions(+), 2 deletions(-)

Patch

diff --git a/Makefile.hw b/Makefile.hw
index 139412e..d8da814 100644
--- a/Makefile.hw
+++ b/Makefile.hw
@@ -15,8 +15,8 @@  obj-y += virtio.o virtio-pci.o
 obj-y += fw_cfg.o
 obj-y += watchdog.o
 obj-y += nand.o ecc.o
-
-obj-y += m48t59.o escc.o
+obj-$(CONFIG_M48T59) += m48t59.o
+obj-y += escc.o

 # SCSI layer
 obj-y += lsi53c895a.o esp.o
diff --git a/configure b/configure
index ae22e42..a961358 100755
--- a/configure
+++ b/configure
@@ -1820,6 +1820,7 @@  nseries=no
 spitz=no
 sd_flash=no
 ptimer=no
+m48t59=no

 for target in $target_list; do
 target_dir="$target"
@@ -2054,6 +2055,13 @@  if test "$target_softmmu" = "yes" ; then
   ;;
   sparc)
     ptimer=yes
+    m48t59=yes
+  ;;
+  sparc64)
+    m48t59=yes
+  ;;
+  ppc*)
+    m48t59=yes
   ;;
   esac
 fi
@@ -2269,6 +2277,10 @@  if test "$ptimer" = "yes" ; then
     echo "CONFIG_PTIMER=y" >> $config_host_mak
 fi

+if test "$m48t59" = "yes" ; then
+    echo "CONFIG_M48T59=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