diff options
author | Tom Rini <trini@ti.com> | 2012-03-16 06:34:35 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-05-15 08:31:26 +0200 |
commit | 06a119a03147aec3cf1fe746a6ef0aa1c66e7e72 (patch) | |
tree | 8eebd037181aea6347e14f0d80402dd06ec64384 /Makefile | |
parent | 19a695f84bb15e1a9203121f9dd4d1787d9a7757 (diff) | |
download | u-boot-imx-06a119a03147aec3cf1fe746a6ef0aa1c66e7e72.zip u-boot-imx-06a119a03147aec3cf1fe746a6ef0aa1c66e7e72.tar.gz u-boot-imx-06a119a03147aec3cf1fe746a6ef0aa1c66e7e72.tar.bz2 |
Makefile: Add a 'checkthumb' rule
This rule confirms that if we're on ARM and we have enabled THUMB builds
that we have a new enough toolchain to produce a working binary.
Changes in v2:
- Switch to ALL-$(CONFIG_SYS_THUMB_BUILD) in arch/arm/config.mk (Mike F)
- Simplfy checkthumb test after doing the above
Signed-off-by: Tom Rini <trini@ti.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -556,6 +556,13 @@ SYSTEM_MAP = \ $(obj)System.map: $(obj)u-boot @$(call SYSTEM_MAP,$<) > $(obj)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 # # Auto-generate the autoconf.mk file (which is included by all makefiles) # |