From: Marco Cavallini Date: Wed, 21 Dec 2005 14:32:38 +0100 Subject: [U-Boot-Users] [PATCH]Fix cc-option macro in config.mk References: <434D0DDA.4070507@softool.ch> Message-ID: <001d01c60633$04a29360$0200a8c0@kmobile> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > The following patch fix the compilation problem discussed in thread > "Problem building U-Boot for ARM target" > > Best regards > -P.Broggini > > > > Signed-off-by: Paolo Broggini > > > CHANGELOG: > Fix cc-option macro in config.mk, $(CFLAGS) dropped. > Patch by Paolo Broggini, 12 Oct 2005 > > > diff --git a/config.mk b/config.mk > --- a/config.mk > +++ b/config.mk > @@ -90,7 +90,7 @@ HOSTSTRIP = strip > # Option checker (courtesy linux kernel) to ensure > # only supported compiler options are used > # > -cc-option = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null > \ > +cc-option = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \ > > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;) > > # > Hello all, I have the same error >> cc1: invalid option 'abi=apcs-gnu' with Freescale MC9328MX1 and some other ARM boards and I wonder why this patch has not been applied in 1.1.4. Is it correct to use it ? Should I expect to see it in next 1.1.5 ? Thanks Marco Cavallini Koan s.a.s. - Bergamo - ITALIA Embedded and Real-Time Software Engineering www.koansoftware.com | www.klinux.org