diff mbox

[04/15] configure nseries devices only for arm softmmu

Message ID f27eb279d7618bbf3cae3773195b362eb1e52691.1251113142.git.quintela@redhat.com
State Superseded
Headers show

Commit Message

Juan Quintela Aug. 24, 2009, 11:29 a.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 Makefile  |    4 ++--
 configure |    6 ++++++
 2 files changed, 8 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/Makefile b/Makefile
index b58984a..6b703ee 100644
--- a/Makefile
+++ b/Makefile
@@ -77,8 +77,7 @@  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 += twl92230.o
-obj-y += tmp105.o lm832x.o eeprom93xx.o tsc2005.o
+obj-y += eeprom93xx.o
 obj-y += scsi-disk.o cdrom.o
 obj-y += scsi-generic.o
 obj-y += usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o
@@ -91,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_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
 obj-$(CONFIG_BRLAPI) += baum.o
diff --git a/configure b/configure
index f1481f3..4444fdd 100755
--- a/configure
+++ b/configure
@@ -1816,6 +1816,7 @@  fi
 # What drivers should we compile
 ssi_bus=no
 stellaris=no
+nseries=no

 for target in $target_list; do
 target_dir="$target"
@@ -2043,6 +2044,7 @@  if test "$target_softmmu" = "yes" ; then
   arm*)
     ssi_bus=yes
     stellaris=yes
+    nseries=yes
   ;;
   esac
 fi
@@ -2242,6 +2244,10 @@  if test "$stellaris" = "yes" ; then
     echo "CONFIG_STELLARIS=y" >> $config_host_mak
 fi

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