summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-01-19 20:39:02 -0500
committerTom Rini <trini@konsulko.com>2016-01-25 10:39:44 -0500
commit6e2f1538959d79b54a0ceeed2f24643cf98ebaa4 (patch)
treea4c949582d233aa9376f671ba43c26183c2b2f56 /arch/powerpc
parent29c4d281bc9d379450f792050c7681022f6fbafa (diff)
downloadtalos-obmc-uboot-6e2f1538959d79b54a0ceeed2f24643cf98ebaa4.tar.gz
talos-obmc-uboot-6e2f1538959d79b54a0ceeed2f24643cf98ebaa4.zip
arm, powerpc: Update cc-version tests to check for cc-name as well
For compatibility clang will report some gcc version. However since we are checking gcc versions in order to then fail to build, we should limit these tests only to when we are using gcc and not clang. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/config.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/config.mk b/arch/powerpc/config.mk
index 6b44a3709a..b0ed374563 100644
--- a/arch/powerpc/config.mk
+++ b/arch/powerpc/config.mk
@@ -41,7 +41,8 @@ archprepare: checkgcc4
# 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 \
+ @if test "$(call cc-name)" = "gcc" -a \
+ $(call cc-version) -lt 0400; then \
echo -n '*** Your GCC is too old, please upgrade to GCC 4.x or newer'; \
false; \
fi
OpenPOWER on IntegriCloud