Patchwork [09/14] configure escc only for sparc and ppc softmmu

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

Comments

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

Patch

diff --git a/Makefile.hw b/Makefile.hw
index d8da814..6299a6e 100644
--- a/Makefile.hw
+++ b/Makefile.hw
@@ -16,7 +16,7 @@  obj-y += fw_cfg.o
 obj-y += watchdog.o
 obj-y += nand.o ecc.o
 obj-$(CONFIG_M48T59) += m48t59.o
-obj-y += escc.o
+obj-$(CONFIG_ESCC) += escc.o

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

 for target in $target_list; do
 target_dir="$target"
@@ -2056,12 +2057,14 @@  if test "$target_softmmu" = "yes" ; then
   sparc)
     ptimer=yes
     m48t59=yes
+    escc=yes
   ;;
   sparc64)
     m48t59=yes
   ;;
   ppc*)
     m48t59=yes
+    escc=yes
   ;;
   esac
 fi
@@ -2281,6 +2284,9 @@  if test "$m48t59" = "yes" ; then
     echo "CONFIG_M48T59=y" >> $config_host_mak
 fi

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