diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-03-05 17:49:22 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-03-07 10:59:06 -0500 |
commit | 388b2e520b07cc857c03a152fc6006763f78b9d6 (patch) | |
tree | cb18edd9a716dbacc262acedf372bd92fd7ba6d5 /arch | |
parent | 58dac32764728f2f621377442d785936ec6925e8 (diff) | |
download | u-boot-imx-388b2e520b07cc857c03a152fc6006763f78b9d6.zip u-boot-imx-388b2e520b07cc857c03a152fc6006763f78b9d6.tar.gz u-boot-imx-388b2e520b07cc857c03a152fc6006763f78b9d6.tar.bz2 |
kbuild: move "checkthumb" to ARM archprepare
"checkthumb" makes sense only for ARM architecture.
Move it to arch/arm/config.mk.
To make sure gcc supports THUMB mode before beginning build,
run "checkthumb" during "archprepare".
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/config.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/config.mk b/arch/arm/config.mk index 792cb43..f4c2d81 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, |