ext-toolchain: MIPS: Select correct endianness for the target
authorMarkos Chandras <markos.chandras@imgtec.com>
Mon, 14 Oct 2013 09:52:25 +0000 (10:52 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 30 Oct 2013 17:51:37 +0000 (18:51 +0100)
commitf3a2b806dee5e642077ca3fafd67e3b17e09b669
tree35662c163079d9f98fcd507f75f7c8d92d17e0a8
parent260d708c8916f9b681f2e97453470c43c05a67b6
ext-toolchain: MIPS: Select correct endianness for the target

Previously, an external-toolchain on a mipsel/mips64el target
didn't select the appriopriate endianness but
it asked the user to set the correct CFLAGS on his/her own.
We fix this by appending "-EL" to the toolchain wrapper options
if the user has selected a mipsel/mips64el target.

[Thomas: remove unneeded test on BR2_ENDIAN, since mipsel and mips64el
are always little-endian, and add the corresponding big endian case.]

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
toolchain/toolchain-external/Config.in
toolchain/toolchain-external/ext-toolchain-wrapper.c
toolchain/toolchain-external/toolchain-external.mk