From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catalin Marinas Date: Tue, 11 Oct 2005 15:32:30 +0100 Subject: [U-Boot-Users] Re: Problem building U-Boot for ARM target In-Reply-To: <434BC738.1020707@softool.ch> (Paolo Broggini's message of "Tue, 11 Oct 2005 16:07:52 +0200") References: <434B830B.4020405@softool.ch> <434BACC0.4090708@softool.ch> <434BBC9A.2020904@softool.ch> <434BC738.1020707@softool.ch> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Paolo Broggini wrote: > Well may be it starts to become out-of-topics here in U-Boot list, > but just one more thing: 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). > I tried the macro cc-option "by hand" (so without $CFLAGS) in a bash > shell and I got the same results as above, i.e. the check for option > -mapcs-32 fails but the compiler support it and indeed the > compilation works fine! May be a bug? 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 -- Catalin