X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=arch%2Farm%2Fconfig.mk;h=f4c2d81044addd5b1a6446940c29d39e49b95450;hp=792cb4345047c78b5b61cddf33c58d1eb474809d;hb=388b2e520b07cc857c03a152fc6006763f78b9d6;hpb=e4b87e5b1d026bd010e2ba3abbf89561e8320287 diff --git a/arch/arm/config.mk b/arch/arm/config.mk index 792cb43450..f4c2d81044 100644 --- a/arch/arm/config.mk +++ b/arch/arm/config.mk @@ -41,7 +41,17 @@ endif # Only test once ifneq ($(CONFIG_SPL_BUILD),y) -ALL-$(CONFIG_SYS_THUMB_BUILD) += checkthumb +ifeq ($(CONFIG_SYS_THUMB_BUILD),y) +archprepare: checkthumb + +checkthumb: + @if test "$(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.'; \ + false; \ + fi +endif endif # Try if EABI is supported, else fall back to old API,