[U-Boot-Users] Re: Problem building U-Boot for ARM target
Catalin Marinas
catalin.marinas at arm.com
Tue Oct 11 16:32:30 CEST 2005
Paolo Broggini <pbroggini at softool.ch> 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
More information about the U-Boot
mailing list