]> git.sur5r.net Git - u-boot/commitdiff
kbuild: move "checkgcc4" to PowerPC archprepare
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Wed, 5 Mar 2014 08:49:23 +0000 (17:49 +0900)
committerTom Rini <trini@ti.com>
Fri, 7 Mar 2014 15:59:07 +0000 (10:59 -0500)
"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>
Makefile
arch/powerpc/config.mk

index c482d122e1f9d581fca60ef1f52040e80f8c1c2a..ee16d8cfc7bb4f3b8cd7f4a15ce3aef2d7aee443 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1114,15 +1114,6 @@ SYSTEM_MAP = \
 System.map:    u-boot
                @$(call SYSTEM_MAP,$<) > $@
 
-# 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
-
 checkdtc:
        @if test $(call dtc-version) -lt 0104; then \
                echo '*** Your dtc is too old, please upgrade to dtc 1.4 or newer'; \
index e398f979823dd1f87c57a7d68089103c45f5f4c7..fb7096e7b5e2bd8bfc55d648cb680024790fa6a0 100644 (file)
@@ -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