Skip to content
Snippets Groups Projects
Commit 6e2f1538 authored by Tom Rini's avatar Tom Rini
Browse files

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: default avatarTom Rini <trini@konsulko.com>
parent 29c4d281
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,8 @@ ifeq ($(CONFIG_SYS_THUMB_BUILD),y) ...@@ -40,7 +40,8 @@ ifeq ($(CONFIG_SYS_THUMB_BUILD),y)
archprepare: checkthumb archprepare: checkthumb
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 -n '*** Your GCC does not produce working '; \
echo 'binaries in THUMB mode.'; \ echo 'binaries in THUMB mode.'; \
echo '*** Your board is configured for THUMB mode.'; \ echo '*** Your board is configured for THUMB mode.'; \
......
...@@ -41,7 +41,8 @@ archprepare: checkgcc4 ...@@ -41,7 +41,8 @@ archprepare: checkgcc4
# that U-Boot wants. # that U-Boot wants.
# See http://lists.denx.de/pipermail/u-boot/2012-September/135156.html # See http://lists.denx.de/pipermail/u-boot/2012-September/135156.html
checkgcc4: 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'; \ echo -n '*** Your GCC is too old, please upgrade to GCC 4.x or newer'; \
false; \ false; \
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment