qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Anthony Liguori" <aliguori@us.ibm.com>,
	patches@linaro.org, "Alexander Graf" <agraf@suse.de>,
	"Andreas Färber" <andreas.faerber@web.de>,
	qemu-ppc@nongnu.org,
	"Peter Crosthwaite" <peter.crosthwaite@xilinx.com>,
	"Edgar E. Iglesias" <edgar.iglesias@gmail.com>
Subject: [Qemu-devel] [PATCH 1/4] configure: Require libfdt for arm, ppc, microblaze softmmu targets
Date: Fri, 24 May 2013 16:26:54 +0100	[thread overview]
Message-ID: <1369409217-7553-2-git-send-email-peter.maydell@linaro.org> (raw)
In-Reply-To: <1369409217-7553-1-git-send-email-peter.maydell@linaro.org>

A number of our softmmu targets (PPC, ARM, Microblaze) now more or
less require flattened device tree support for various board models
to work correctly.  Make libfdt mandatory if the target list includes
these, rather than building unhelpful half-functional binaries.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 configure |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/configure b/configure
index 5ae7e4a..708c010 100755
--- a/configure
+++ b/configure
@@ -2518,6 +2518,26 @@ fi
 
 ##########################################
 # fdt probe
+# fdt support is mandatory for at least some target architectures,
+# so insist on it if we're building those system emulators.
+fdt_required=no
+for target in $target_list; do
+  case $target in
+    arm*softmmu|ppc*softmmu|microblaze*softmmu)
+      fdt_required=yes
+    ;;
+  esac
+done
+
+if test "$fdt_required" = "yes"; then
+  if test "$fdt" = "no"; then
+    error_exit "fdt disabled but some requested targets require it." \
+      "You can turn off fdt only if you also disable all the system emulation" \
+      "targets which need it (by specifying a cut down --target-list)."
+  fi
+  fdt=yes
+fi
+
 if test "$fdt" != "no" ; then
   fdt_libs="-lfdt"
   cat > $TMPC << EOF
-- 
1.7.9.5

  reply	other threads:[~2013-05-24 15:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-24 15:26 [Qemu-devel] [PATCH 0/4] Require libfdt for arm/microblaze/ppc softmmu targets Peter Maydell
2013-05-24 15:26 ` Peter Maydell [this message]
2013-05-28  4:07   ` [Qemu-devel] [PATCH 1/4] configure: Require libfdt for arm, ppc, microblaze " Peter Crosthwaite
2013-05-28  9:03   ` Andreas Färber
2013-05-28  9:39     ` Peter Maydell
2013-05-24 15:26 ` [Qemu-devel] [PATCH 2/4] arm: Remove CONFIG_FDT conditionals Peter Maydell
2013-05-28  4:09   ` Peter Crosthwaite
2013-05-24 15:26 ` [Qemu-devel] [PATCH 3/4] microblaze: " Peter Maydell
2013-05-28  4:10   ` Peter Crosthwaite
2013-05-24 15:26 ` [Qemu-devel] [PATCH 4/4] ppc: " Peter Maydell
2013-05-25 12:32 ` [Qemu-devel] [PATCH 0/4] Require libfdt for arm/microblaze/ppc softmmu targets Edgar E. Iglesias

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=1369409217-7553-2-git-send-email-peter.maydell@linaro.org \
    --to=peter.maydell@linaro.org \
    --cc=agraf@suse.de \
    --cc=aliguori@us.ibm.com \
    --cc=andreas.faerber@web.de \
    --cc=edgar.iglesias@gmail.com \
    --cc=patches@linaro.org \
    --cc=peter.crosthwaite@xilinx.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@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).