summaryrefslogtreecommitdiff
path: root/arch/arm/config.mk
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-01-20 01:39:02 (GMT)
committerTom Rini <trini@konsulko.com>2016-01-25 15:39:44 (GMT)
commit6e2f1538959d79b54a0ceeed2f24643cf98ebaa4 (patch)
treea4c949582d233aa9376f671ba43c26183c2b2f56 /arch/arm/config.mk
parent29c4d281bc9d379450f792050c7681022f6fbafa (diff)
downloadu-boot-6e2f1538959d79b54a0ceeed2f24643cf98ebaa4.tar.xz
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/arm/config.mk')
-rw-r--r--arch/arm/config.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/config.mk b/arch/arm/config.mk
index 0550225..a3e14a8 100644
--- a/arch/arm/config.mk
+++ b/arch/arm/config.mk
@@ -40,7 +40,8 @@ ifeq ($(CONFIG_SYS_THUMB_BUILD),y)
archprepare: checkthumb
checkthumb:
- @if test "$(call cc-version)" -lt "0404"; then \
+ @if test "$(call cc-name)" = "gcc" -a \
+ "$(call cc-version)" -lt "0404"; then \
echo -n '*** Your GCC does not produce working '; \
echo 'binaries in THUMB mode.'; \
echo '*** Your board is configured for THUMB mode.'; \