aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 11 insertions, 2 deletions
diff --git a/configure b/configure
index 28667fe..28b76c0 100755
--- a/configure
+++ b/configure
@@ -3341,7 +3341,7 @@ case "$target_arch2" in
;;
ppc)
gdb_xml_files="power-core.xml power-fpu.xml power-altivec.xml power-spe.xml"
- target_phys_bits=32
+ target_phys_bits=64
target_nptl="yes"
target_libs_softmmu="$fdt_libs"
;;
@@ -3454,7 +3454,16 @@ case "$target_arch2" in
fi
fi
esac
-if test "$target_arch2" = "ppc64" -a "$fdt" = "yes"; then
+if test "$fdt" != "yes" && test "$target_arch2" = "ppc" -o \
+ "$target_arch2" = "ppc64" -o "$target_arch2" = "ppcemb"; then
+ echo
+ echo "Error: libfdt missing"
+ echo "The PowerPC target requires libfdt to work properly."
+ echo "Please make sure to have it and its development packages installed."
+ echo
+ exit 1
+fi
+if test "$target_arch2" = "ppc64"; then
echo "CONFIG_PSERIES=y" >> $config_target_mak
fi
if test "$target_bigendian" = "yes" ; then