summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-03-05 17:49:23 +0900
committerTom Rini <trini@ti.com>2014-03-07 10:59:07 -0500
commitd57d60cf24e46aab144511d110dee7d068da6e66 (patch)
treeb2eb749e375029fb5717f93c64f43131cdb1e2c6 /arch
parent388b2e520b07cc857c03a152fc6006763f78b9d6 (diff)
downloadblackbird-obmc-uboot-d57d60cf24e46aab144511d110dee7d068da6e66.tar.gz
blackbird-obmc-uboot-d57d60cf24e46aab144511d110dee7d068da6e66.zip
kbuild: move "checkgcc4" to PowerPC archprepare
"checkgcc4" is used only for PowerPC. Move it to arch/powerpc/config.mk. To make sure gcc is new enough before beginning build, run "checkgcc4" during "archprepare". Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/config.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/powerpc/config.mk b/arch/powerpc/config.mk
index e398f97982..fb7096e7b5 100644
--- a/arch/powerpc/config.mk
+++ b/arch/powerpc/config.mk
@@ -35,5 +35,14 @@ endif
# Only test once
ifneq ($(CONFIG_SPL_BUILD),y)
-ALL-y += checkgcc4
+archprepare: checkgcc4
+
+# 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
endif
OpenPOWER on IntegriCloud