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

Matej Kupljen matej.kupljen at ultra.si
Wed Aug 10 08:06:55 CEST 2005


Hi

> I think the board linker scripts also need to be modified to
> work with either big or little endian toolchains like below.  The third
> argument to OUTPUT_FORMAT is only used for explicitly little endian
> compilation.

Correct. I'll try it.

> The test that decides which endianess to build is not going to work for
> toolchains other than Denx ones, lots of them have prefixes that don't
> include 4KCle (they may not build u-boot very well, but that's another issue)

I agree.

> I would suggest doing it by config name and putting ENDIANNESS in
> config.mk something like so (untested):
> 
> dbau1550_config \
> dbau1550_el_config	:	unconfig
> 	@ >include/config.h
> 	@[ -z "$(findstring _el,$@)" ] || \
> 		{ echo "ENDIANNESS = little" >>include/config.mk ; \
> 		  echo "little endian" ; \
> 		}
> 	@echo "#define CONFIG_DBAU1550 1" >>include/config.h
> 	@./mkconfig -a dbau1x00 mips mips dbau1x00
> 
> and test for endianness in cpu/mips/config.mk and do the right thing.

I'll test it.

BR,
Matej





More information about the U-Boot mailing list