diff options
author | Pavel Machek <pavel@denx.de> | 2015-04-13 14:49:28 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-04-13 10:52:51 -0400 |
commit | a6a4c542d316b3401f0840ac5378743191bca851 (patch) | |
tree | f218001f51eae9fde364595532f849048682c974 /arch | |
parent | 1d2f74690cace803844bce198a6d5fa1b6cd11f9 (diff) | |
download | u-boot-imx-a6a4c542d316b3401f0840ac5378743191bca851.zip u-boot-imx-a6a4c542d316b3401f0840ac5378743191bca851.tar.gz u-boot-imx-a6a4c542d316b3401f0840ac5378743191bca851.tar.bz2 |
break build if it would produce broken binary
Add an error in known-bad case so that we don't produce broken and
hard to debug binaries.
Signed-off-by: Pavel Machek <pavel@denx.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/include/asm/u-boot.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/u-boot.h b/arch/arm/include/asm/u-boot.h index 43cc494..ae4c21b 100644 --- a/arch/arm/include/asm/u-boot.h +++ b/arch/arm/include/asm/u-boot.h @@ -49,4 +49,8 @@ typedef struct bd_info { #define IH_ARCH_DEFAULT IH_ARCH_ARM64 #endif +#if defined(CONFIG_USE_PRIVATE_LIBGCC) && defined(CONFIG_SYS_THUMB_BUILD) +#error Thumb build does not work with private libgcc. +#endif + #endif /* _U_BOOT_H_ */ |