[U-Boot] [PATCH v2 7/8] Makefile: default to cc for host compiler
Jeroen Hofstee
jeroen at myspectrum.nl
Wed Sep 10 12:02:44 CEST 2014
Hello Albert,
On 09-09-14 21:59, Albert ARIBAUD wrote:
> Hi Jeroen,
>
> On Tue, 09 Sep 2014 19:34:44 +0200, Jeroen Hofstee
> <jeroen at myspectrum.nl> wrote:
>
>
> I've tried building rpi_b as per the README, but I keep getting
>
> /usr/bin/as: unrecognized option '-mfloat-abi=soft'
> clang: error: assembler command failed with exit code 1 (use -v
> to see invocation)
>
> Shouldn't rpi_b build properly since it is the one given as an example
> for Debian-based building?
>
ok, this turns out to be a simple issue. The gas for arm is not
found since CROSS_COMPILE has a trailing dash. When it is removed
the correct as is picked up (and libs is found automagically as well).
Both the 3.4 and 3.5 binary packages from Ubuntu are able to
compile u-boot with this change, so the README should be updated.
Regards,
Jeroen
This should work:
make HOSTCC=clang CC="clang -target arm-linux-gnueabi -mllvm
-arm-use-movt=0 -no-integrated-as" V=1 all
More information about the U-Boot
mailing list