[U-Boot-Users] Re: MIPS LE build problems

Matej Kupljen matej.kupljen at ultra.si
Thu Aug 18 08:31:39 CEST 2005


Hi

> > How about something like:
> > # ${CROSS_COMPILE}gcc -dumpspecs
> 
> Doesn't work for me.

Yes, you need to export the CROSS_COMPILE.

> > In my case (little endian):
> > *multilib_defaults:
> > EL mips1 mabi=32
> 
> -> export CROSS_COMPILE=mips_4KC-
> -> mips_4KC-gcc -dumpspecs
> ...
> *multilib_defaults:
> EB mips1 mabi=32
> 
> -> export CROSS_COMPILE=mips_4KCle-
> -> mips_4KCle-gcc -dumpspecs
> ...
> *multilib_defaults:
> EB mips1 mabi=32
> 
> But mips_4KCle-gcc _does_ build LE code just fine ...

I checked previous messages and you said you have the same compiler
and with different names of the links that points to it.
/opt/eldk/usr/bin/mips_4KC-gcc -> mips-linux-gcc
/opt/eldk/usr/bin/mips_4KCle-gcc -> mips-linux-gcc

Where do you configure the options that this two "different" compilers
use? DMIPSEB  -D_MIPSEB for mips_4KC-gcc or -D_MIPSEL -D__MIPSEL
-D__MIPSEL__ -DMIPSEL for mips_4KCle-gcc?

BR,
Matej





More information about the U-Boot mailing list