On Tue, Jul 26, 2011 at 06:40:36AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@xxxxxxxxxxxx> > --- > arch/mips/Makefile | 42 ++++++++++++++++++++++++++++++++++++++---- > 1 files changed, 38 insertions(+), 4 deletions(-) > > diff --git a/arch/mips/Makefile b/arch/mips/Makefile > index 86b4b80..72434d4 100644 > --- a/arch/mips/Makefile > +++ b/arch/mips/Makefile > @@ -1,20 +1,54 @@ > +# > +# Select the object file format to substitute into the linker script. > +# > +ifdef CONFIG_CPU_LITTLE_ENDIAN > +32bit-tool-archpref = mipsel > +64bit-tool-archpref = mips64el > +32bit-bfd = elf32-tradlittlemips > +64bit-bfd = elf64-tradlittlemips > +32bit-emul = elf32ltsmip > +64bit-emul = elf64ltsmip > +else > +32bit-tool-archpref = mips > +64bit-tool-archpref = mips64 > +32bit-bfd = elf32-tradbigmips > +64bit-bfd = elf64-tradbigmips > +32bit-emul = elf32btsmip > +64bit-emul = elf64btsmip > +endif I'm not convinced that introducing magic for finding a cross toolchain is a good idea. The corresponding kernel code goes back to the pre 2.6.12 era and I think it wouldn't find its way mainline nowadays. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox