[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 07/10] configure: Require libfdt for arm, ppc, microb
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PULL 07/10] configure: Require libfdt for arm, ppc, microblaze softmmu targets |
Date: |
Fri, 14 Jun 2013 15:53:11 +0100 |
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 <address@hidden>
Reviewed-by: Edgar E. Iglesias <address@hidden>
Reviewed-by: Peter Crosthwaite <address@hidden>
Tested-by: Edgar E. Iglesias <address@hidden>
Message-id: address@hidden
---
configure | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/configure b/configure
index 31b7783..ad32f87 100755
--- a/configure
+++ b/configure
@@ -2486,6 +2486,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"
# explicitly check for libfdt_env.h as it is missing in some stable installs
--
1.7.9.5
- [Qemu-devel] [PULL 00/10] configury queue, Peter Maydell, 2013/06/14
- [Qemu-devel] [PULL 05/10] build: drop TARGET_TYPE, Peter Maydell, 2013/06/14
- [Qemu-devel] [PULL 10/10] ppc: Remove CONFIG_FDT conditionals, Peter Maydell, 2013/06/14
- [Qemu-devel] [PULL 07/10] configure: Require libfdt for arm, ppc, microblaze softmmu targets,
Peter Maydell <=
- [Qemu-devel] [PULL 09/10] microblaze: Remove CONFIG_FDT conditionals, Peter Maydell, 2013/06/14
- [Qemu-devel] [PULL 08/10] arm: Remove CONFIG_FDT conditionals, Peter Maydell, 2013/06/14
- [Qemu-devel] [PULL 02/10] build: rename TARGET_ARCH2 to TARGET_NAME, Peter Maydell, 2013/06/14
- [Qemu-devel] [PULL 01/10] Add a stp file for usage from build directory, Peter Maydell, 2013/06/14
- [Qemu-devel] [PULL 03/10] build: do not use TARGET_ARCH, Peter Maydell, 2013/06/14
- Re: [Qemu-devel] [PULL 00/10] configury queue, Paolo Bonzini, 2013/06/14
- [Qemu-devel] [PULL 04/10] main: use TARGET_ARCH only for the target-specific #define, Peter Maydell, 2013/06/14
- [Qemu-devel] [PULL 06/10] configure: dtc: Probe for libfdt_env.h, Peter Maydell, 2013/06/14