[U-Boot-Users] [PATCH] notes on cpu/mips/config.mk

Chuck Meade chuck at ThePTRGroup.com
Thu Sep 29 18:26:33 CEST 2005


Hi Rodolfo,

> I don't think I'm breaking big endian support with my patch since if
> you have the ld command:
> 
>    OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradlittlemips")
> 
> you say to the linker that your default endian is "big", please see:
> 
>    info -f /usr/local/mipsel/info/ld.info -n "Format Commands"
> 
> So if you do not specify "-EB" nor "-EL" the linker will use default
> (big endian in the above example).

Your patch removes ENDIANNESS from MIPSFLAGS.  MIPSFLAGS affects more than just
the linker.  Your patch removes the -EB flag being sent to all tools that have
MIPSFLAGS, including the compiler.  Your patch also changes the use of MIPSFLAGS
itself, so this may be hard for you to see.

Look at the file after you have applied your patch, and you will see that there
is now absolutely no way that PLATFORM_CPPFLAGS would *ever* have "-EB" appended
to it.  That is what you have removed.

Chuck Meade
The PTR Group






More information about the U-Boot mailing list