From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Fri, 16 Mar 2012 12:07:23 -0400 Subject: [U-Boot] [PATCH 2/2] Makefile: Add a 'checkthumb' rule In-Reply-To: <1331911668-22107-2-git-send-email-trini@ti.com> References: <1331227222-12419-1-git-send-email-aneesh@ti.com> <1331911668-22107-2-git-send-email-trini@ti.com> Message-ID: <201203161207.24214.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday 16 March 2012 11:27:48 Tom Rini wrote: > --- a/Makefile > +++ b/Makefile > > # Explicitly make _depend in subdirs containing multiple targets to > prevent # parallel sub-makes creating .depend files simultaneously. > -depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) \ > +depend dep: checkthumb $(TIMESTAMP_FILE) $(VERSION_FILE) \ > $(obj)include/autoconf.mk \ > $(obj)include/generated/generic-asm-offsets.h \ > $(obj)include/generated/asm-offsets.h > @@ -548,6 +548,15 @@ SYSTEM_MAP = \ > $(obj)System.map: $(obj)u-boot > @$(call SYSTEM_MAP,$<) > $(obj)System.map > > +checkthumb: > + @if test "$(ARCH)" = "arm" -a "$(CONFIG_SYS_THUMB_BUILD)" = "y"; then \ > + if test $(call cc-version) -lt 0404; then \ > + echo -n '*** Your GCC does not produce working '; \ > + echo 'binaries in THUMB mode.'; \ > + echo '*** Your board is configured for THUMB mode.'; \ > + false; \ > + fi ; \ > + fi couldn't you do: arch/arm/config.mk:ALL-$(CONFIG_SYS_THUMB_BUILD) += checkthumb -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: