Max Filippov 6c6829a061 xtensa: fix endianness support
To build uClibc correctly we need correct endianness selected in the
crosstool-NG. Xtensa cores may be little- or big-endian, but this
property is static. The toolchain knows the core endianness and doesn't
need options to select it.
Enable ARCH_SUPPORTS_BOTH_ENDIAN and select LE by default. Specify empty
CT_ARCH_ENDIAN_CFLAG so that -m{big,little}-endian don't get added to
the TARGET_CFLAGS, as it's not supported by gcc. Specify empty
CT_ARCH_ENDIAN_LDFLAG so that -EB/-EL don't get added to the
TARGET_LDFLAGS as they are ignored. Select big-endian in the example
xtensa-unknown-linux-uclibc configuration.

This fixes uClibc toolchain build for little-endian cores.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2016-11-22 10:48:34 -08:00
..
2011-11-30 00:25:22 +01:00
2015-11-14 15:04:55 -08:00
2014-09-20 16:53:58 +02:00
2012-12-26 20:05:19 +01:00
2015-01-26 20:43:18 +01:00
2012-12-26 20:05:19 +01:00
2016-06-09 17:12:49 -07:00
2011-11-30 00:25:22 +01:00
2016-11-22 10:48:34 -08:00