From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Broggini Date: Tue, 11 Oct 2005 15:22:34 +0200 Subject: [U-Boot-Users] Re: Problem building U-Boot for ARM target In-Reply-To: References: <434B830B.4020405@softool.ch> <434BACC0.4090708@softool.ch> Message-ID: <434BBC9A.2020904@softool.ch> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Catalin Marinas ha scritto: > Paolo Broggini wrote: > >>Catalin Marinas ha scritto: >> >>>PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,$(call >>>cc-option,-mabi=apcs-gnu,)) >> >>Great, with this it builds fine :-) but the statement contained in >>the head of git 'config.mk' is: >> >> PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) > > > My proposals tries both -mapcs-32 and -mabi=apcs-gnu and if neither > works it doesn't add anything. -mapcs-32 do work, -mabi=apcs-gnu doesn't! > In your config.mk file, can you change -mapcs-32 with -g (this one > would never fail) just to make sure there isn't any problem with the > option checker? Ok, see below: 1) PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) -> gcc complains about '-mabi=apcs-gnu' (see my original mail) 2) PLATFORM_CPPFLAGS +=$(call cc-option,-g,-mabi=apcs-gnu) -> everything compiles fine, the option used is '-g' 3) PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-g) -> everything compiles fine, the option used is '-mapcs-32' Thanks -P.Broggini