diff options
| author | Tom Rini <[email protected]> | 2012-03-16 06:34:35 +0000 |
|---|---|---|
| committer | Albert ARIBAUD <[email protected]> | 2012-05-15 08:31:26 +0200 |
| commit | 06a119a03147aec3cf1fe746a6ef0aa1c66e7e72 (patch) | |
| tree | 8eebd037181aea6347e14f0d80402dd06ec64384 /arch | |
| parent | 19a695f84bb15e1a9203121f9dd4d1787d9a7757 (diff) | |
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 <[email protected]>
Acked-by: Mike Frysinger <[email protected]>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/arm/config.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/config.mk b/arch/arm/config.mk index 4cc99e76137..3f4453a2340 100644 --- a/arch/arm/config.mk +++ b/arch/arm/config.mk @@ -44,6 +44,11 @@ PF_CPPFLAGS_ARM := $(call cc-option,-marm,) \ $(call cc-option,-mno-thumb-interwork,) endif +# Only test once +ifneq ($(CONFIG_SPL_BUILD),y) +ALL-$(CONFIG_SYS_THUMB_BUILD) += checkthumb +endif + # Try if EABI is supported, else fall back to old API, # i. e. for example: # - with ELDK 4.2 (EABI supported), use: |
