summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2012-09-20 19:10:01 -0500
committerScott Wood <scottwood@freescale.com>2012-11-26 15:41:22 -0600
commit6ec63f411e47847484b60a8b451e528d613c9dd9 (patch)
tree2d41c8d38c500fae9846209d40d98b5bb3da8eaf /Makefile
parentca2fca22351aa8d2f52e21f2dffb22b0c82170b6 (diff)
downloadu-boot-6ec63f411e47847484b60a8b451e528d613c9dd9.tar.gz
u-boot-6ec63f411e47847484b60a8b451e528d613c9dd9.tar.bz2
u-boot-6ec63f411e47847484b60a8b451e528d613c9dd9.zip
powerpc: change .fixup test to a GCC version test
This was introduced by commit 244615197469dd6fe75ae082f38424b97c79aeaf, but it fails in a minimal SPL build where the only thing in arch/powerpc/lib is cache.c, which apparently doesn't generate any fixup records. The problem is reported to occur with GCC 3.x, so insist on GCC 4.0 or newer. Patterned after checkthumb as suggested by Tom Rini. Signed-off-by: Scott Wood <scottwood@freescale.com> Cc: Peter Tyser <ptyser@xes-inc.com> Cc: Tom Rini <trini@ti.com> -- v2: test gcc version instead of testing nothing
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5f8b02c36a..5a3cfba0cd 100644
--- a/Makefile
+++ b/Makefile
@@ -643,6 +643,16 @@ checkthumb:
echo '*** Your board is configured for THUMB mode.'; \
false; \
fi
+
+# GCC 3.x is reported to have problems generating the type of relocation
+# that U-Boot wants.
+# See http://lists.denx.de/pipermail/u-boot/2012-September/135156.html
+checkgcc4:
+ @if test $(call cc-version) -lt 0400; then \
+ echo -n '*** Your GCC is too old, please upgrade to GCC 4.x or newer'; \
+ false; \
+ fi
+
#
# Auto-generate the autoconf.mk file (which is included by all makefiles)
#