diff mbox

[05/14] configure spitz devices only for arm softmmu

Message ID 5567f7203e56e3cdac322b51ad3ccd4cb9ac6efd.1250810973.git.quintela@redhat.com
State Superseded
Headers show

Commit Message

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

Patch

diff --git a/Makefile b/Makefile
index 6b703ee..4a9fc0c 100644
--- a/Makefile
+++ b/Makefile
@@ -76,7 +76,7 @@  obj-y = $(block-obj-y)
 obj-y += readline.o console.o host-utils.o

 obj-y += irq.o ptimer.o
-obj-y += i2c.o smbus.o smbus_eeprom.o max7310.o wm8750.o
+obj-y += i2c.o smbus.o smbus_eeprom.o
 obj-y += eeprom93xx.o
 obj-y += scsi-disk.o cdrom.o
 obj-y += scsi-generic.o
@@ -90,6 +90,7 @@  obj-y += qemu-char.o aio.o net-checksum.o savevm.o
 obj-y += msmouse.o ps2.o
 obj-y += qdev.o qdev-properties.o

+obj-$(CONFIG_SPITZ) += max7310.o wm8750.o
 obj-$(CONFIG_NSERIES) += twl92230.o tmp105.o lm832x.o tsc2005.o
 obj-$(CONFIG_STELLARIS) += stellaris_input.o ssd0303.o
 obj-$(CONFIG_SSI) += ssi.o ssi-sd.o max111x.o ssd0323.o ads7846.o
diff --git a/configure b/configure
index 4444fdd..3e23ea6 100755
--- a/configure
+++ b/configure
@@ -1817,6 +1817,7 @@  fi
 ssi_bus=no
 stellaris=no
 nseries=no
+spitz=no

 for target in $target_list; do
 target_dir="$target"
@@ -2045,6 +2046,7 @@  if test "$target_softmmu" = "yes" ; then
     ssi_bus=yes
     stellaris=yes
     nseries=yes
+    spitz=yes
   ;;
   esac
 fi
@@ -2248,6 +2250,10 @@  if test "$nseries" = "yes" ; then
     echo "CONFIG_NSERIES=y" >> $config_host_mak
 fi

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