Patchwork [11/14] configure ecc flash only for arm and sparc softmmu

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

Comments

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

Patch

diff --git a/Makefile.hw b/Makefile.hw
index a470270..c9dd420 100644
--- a/Makefile.hw
+++ b/Makefile.hw
@@ -14,7 +14,8 @@  obj-y =
 obj-y += virtio.o virtio-pci.o
 obj-y += fw_cfg.o
 obj-y += watchdog.o
-obj-y += nand.o ecc.o
+obj-y += nand.o
+obj-$(CONFIG_ECC) += ecc.o
 obj-$(CONFIG_M48T59) += m48t59.o
 obj-$(CONFIG_ESCC) += escc.o

diff --git a/configure b/configure
index ffdd612..a159cde 100755
--- a/configure
+++ b/configure
@@ -1823,6 +1823,7 @@  ptimer=no
 m48t59=no
 escc=no
 esp=no
+ecc_flash=no

 for target in $target_list; do
 target_dir="$target"
@@ -2054,11 +2055,13 @@  if test "$target_softmmu" = "yes" ; then
     spitz=yes
     sd_flash=yes
     ptimer=yes
+    ecc_flash=yes
   ;;
   sparc)
     ptimer=yes
     m48t59=yes
     escc=yes
+    ecc_flash=yes
   ;;
   sparc64)
     m48t59=yes
@@ -2297,6 +2300,10 @@  if test "$esp" = "yes" ; then
     echo "CONFIG_ESP=y" >> $config_host_mak
 fi

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