From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Broggini Date: Tue, 11 Oct 2005 17:33:54 +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> <434BBC9A.2020904@softool.ch> <434BC738.1020707@softool.ch> Message-ID: <434BDB62.30308@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: > > > I don't think it is OT as long as the config.mk files are part of > U-Boot and they don't work as expected (unless the bug is definitely > in a different tool). Ok > > > > I tried the below file (with CC set to your compiler) and it works as > expected for me (called with the two options as arguments), choosing > -mapcs-32 (but it's a 3.4.0 compiler): > > #!/bin/sh > > CC=arm-linux-gcc > > if $CC $1 -S -o /dev/null -xc /dev/null \ > > /dev/null 2>&1; then echo "$1"; else echo "$2"; fi; > > You could look for bug in the shell as well > I start to be a litle bit confused. I tried what you suggested above and it works as expected here to i.e. it chooses -mapcs-32!!!!!!!! But if I build U-Boot it still fails, it takes the wrong option! What about if you tried to buid U-Boot ? Best regards -P.Broggini