mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 01:51:33 +00:00
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>
This commit is contained in:
parent
58dac32764
commit
388b2e520b
2 changed files with 11 additions and 9 deletions
8
Makefile
8
Makefile
|
@ -1114,14 +1114,6 @@ SYSTEM_MAP = \
|
||||||
System.map: u-boot
|
System.map: u-boot
|
||||||
@$(call SYSTEM_MAP,$<) > $@
|
@$(call SYSTEM_MAP,$<) > $@
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
# GCC 3.x is reported to have problems generating the type of relocation
|
# GCC 3.x is reported to have problems generating the type of relocation
|
||||||
# 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
|
||||||
|
|
|
@ -41,7 +41,17 @@ endif
|
||||||
|
|
||||||
# Only test once
|
# Only test once
|
||||||
ifneq ($(CONFIG_SPL_BUILD),y)
|
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
|
endif
|
||||||
|
|
||||||
# Try if EABI is supported, else fall back to old API,
|
# Try if EABI is supported, else fall back to old API,
|
||||||
|
|
Loading…
Add table
Reference in a new issue