Commit a6a4c542d316b3401f0840ac5378743191bca851

Authored by Pavel Machek
Committed by Tom Rini
1 parent 1d2f74690c

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>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

arch/arm/include/asm/u-boot.h
... ... @@ -49,5 +49,9 @@
49 49 #define IH_ARCH_DEFAULT IH_ARCH_ARM64
50 50 #endif
51 51  
  52 +#if defined(CONFIG_USE_PRIVATE_LIBGCC) && defined(CONFIG_SYS_THUMB_BUILD)
  53 +#error Thumb build does not work with private libgcc.
  54 +#endif
  55 +
52 56 #endif /* _U_BOOT_H_ */