From: Marco Cavallini Date: Thu, 22 Dec 2005 14:40:23 +0100 Subject: [U-Boot-Users] Compiler version References: <1135255061.6828.16.camel@localhost.localdomain> Message-ID: <003701c606fd$4437fbd0$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 > Does arm-linux-gcc 3.1 fit to make u-Boot 1.1.4? > > I tried to build it for at91ar9200. While 'make all' arm-linux-gcc > stoped at "unknown option -mabi=apcs-gnu", within /lib_generic > subfolder. (This option looks like one for assembler, but not literally > - 3.1 offers other options...) > I discussed that option again yesterday see thread "[PATCH]Fix cc-option macro in config.mk" please apply this patch > 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 ;) > > # > Marco Cavallini Koan s.a.s. - Bergamo - ITALIA Embedded and Real-Time Software Engineering www.koansoftware.com | www.klinux.org