From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 13 Apr 2015 08:52:52 -0400 Subject: [U-Boot] [patch] break build if it would produce broken binary In-Reply-To: <20150413124928.GB19441@amd> References: <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> <20150413124928.GB19441@amd> Message-ID: <20150413125252.GC16702@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Apr 13, 2015 at 02:49:28PM +0200, Pavel Machek wrote: > 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_ */ I'm agreeable to taking this for the release if you'll go and debug what's wrong with our private libgcc code for the next release. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: