qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Juan Quintela <quintela@redhat.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 02/15] Configure ssi bus and devices only if arm-softmmu target is selected
Date: Mon, 24 Aug 2009 13:29:33 +0200	[thread overview]
Message-ID: <54d62fb1d842657da8212df1debbea37c8f6d68c.1251113142.git.quintela@redhat.com> (raw)
In-Reply-To: <cover.1251113142.git.quintela@redhat.com>
In-Reply-To: <cover.1251113142.git.quintela@redhat.com>


Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 Makefile  |    9 +++++----
 configure |   13 +++++++++++++
 2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index f6bdf84..0540d1b 100644
--- a/Makefile
+++ b/Makefile
@@ -76,21 +76,22 @@ 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 max111x.o wm8750.o
-obj-y += ssd0303.o ssd0323.o ads7846.o stellaris_input.o twl92230.o
+obj-y += i2c.o smbus.o smbus_eeprom.o max7310.o wm8750.o
+obj-y += ssd0303.o stellaris_input.o twl92230.o
 obj-y += tmp105.o lm832x.o eeprom93xx.o tsc2005.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
 obj-y += usb-serial.o usb-net.o
-obj-y += sd.o ssi-sd.o
+obj-y += sd.o
 obj-y += bt.o bt-host.o bt-vhci.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o usb-bt.o
 obj-y += bt-hci-csr.o
 obj-y += buffered_file.o migration.o migration-tcp.o net.o qemu-sockets.o
 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 ssi.o
+obj-y += qdev.o qdev-properties.o

+obj-$(CONFIG_SSI) += ssi.o ssi-sd.o max111x.o ssd0323.o ads7846.o
 obj-$(CONFIG_BRLAPI) += baum.o
 obj-$(CONFIG_WIN32) += tap-win32.o
 obj-$(CONFIG_POSIX) += migration-exec.o
diff --git a/configure b/configure
index e0928fe..fd02f54 100755
--- a/configure
+++ b/configure
@@ -1813,6 +1813,9 @@ if test -f ${config_host_ld}~ ; then
   fi
 fi

+# What drivers should we compile
+ssi_bus=no
+
 for target in $target_list; do
 target_dir="$target"
 config_mak=$target_dir/config.mak
@@ -2034,6 +2037,12 @@ fi
 if test "$target_softmmu" = "yes" ; then
   echo "CONFIG_SOFTMMU=y" >> $config_mak
   echo "LIBS+=$libs_softmmu" >> $config_mak
+
+  case "$target_arch2" in
+  arm*)
+    ssi_bus=yes
+  ;;
+  esac
 fi
 if test "$target_user_only" = "yes" ; then
   echo "CONFIG_USER_ONLY=y" >> $config_mak
@@ -2223,6 +2232,10 @@ fi

 done # for target in $targets

+if test "$ssi_bus" = "yes" ; then
+    echo "CONFIG_SSI=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
-- 
1.6.2.5

  parent reply	other threads:[~2009-08-24 11:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-24 11:29 [Qemu-devel] [PATCH v2 00/15] Compile only devices that are used Juan Quintela
2009-08-24 11:29 ` [Qemu-devel] [PATCH 01/15] Generate config-host.h after dealing with all the targets Juan Quintela
2009-08-24 11:29 ` Juan Quintela [this message]
2009-08-24 11:29 ` [Qemu-devel] [PATCH 03/15] configure stellaris device only for arm softmmu Juan Quintela
2009-08-24 11:29 ` [Qemu-devel] [PATCH 04/15] configure nseries devices " Juan Quintela
2009-08-24 11:29 ` [Qemu-devel] [PATCH 05/15] configure spitz " Juan Quintela
2009-08-24 11:29 ` [Qemu-devel] [PATCH 06/15] configure sd flash " Juan Quintela
2009-08-24 11:29 ` [Qemu-devel] [PATCH 07/15] configure ptimer only for arm and sparc softmmu Juan Quintela
2009-08-24 11:29 ` [Qemu-devel] [PATCH 08/15] configure m48t59 only for sparc* and ppc softmmu Juan Quintela
2009-08-24 11:29 ` [Qemu-devel] [PATCH 09/15] configure escc only for sparc " Juan Quintela
2009-08-24 11:29 ` [Qemu-devel] [PATCH 10/15] configure esp only for mips_jazz and sparc softmmu Juan Quintela
2009-08-24 11:29 ` [Qemu-devel] [PATCH 11/15] configure ecc flash only for arm " Juan Quintela
2009-08-24 11:29 ` [Qemu-devel] [PATCH 12/15] configure nand flash only for arm and chris softmmu Juan Quintela
2009-08-24 11:29 ` [Qemu-devel] [PATCH 13/15] configure qdev-addr.o only for sparc softmmu Juan Quintela
2009-08-24 11:29 ` [Qemu-devel] [PATCH 14/15] compile isa_mmio.o only for the platforms that use it Juan Quintela
2009-08-24 11:29 ` [Qemu-devel] [PATCH 15/15] Generate gdbstub-xml.c only when there is anything to generate Juan Quintela

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54d62fb1d842657da8212df1debbea37c8f6d68c.1251113142.git.quintela@redhat.com \
    --to=quintela@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).