From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Date: Mon, 13 Apr 2015 14:49:28 +0200 Subject: [U-Boot] [patch] break build if it would produce broken binary In-Reply-To: <20150408160817.GR9524@bill-the-cat> References: <1427752878-18426-1-git-send-email-dinguyen@opensource.altera.com> <20150406144009.GA23259@amd> <5523675E.80804@denx.de> <20150407075638.GB23401@amd> <55239264.2050403@denx.de> <20150408120957.GA22895@amd> <20150408134953.GL9524@bill-the-cat> <20150408140634.GB11550@amd> <20150408155338.GP9524@bill-the-cat> <20150408160817.GR9524@bill-the-cat> Message-ID: <20150413124928.GB19441@amd> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Add an error in known-bad case so that we don't produce broken and hard to debug binaries. Signed-off-by: Pavel Machek 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_ */ -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html