crosstool-ng/scripts/build/arch
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
..
alpha.sh libc/*.sh: Deprecate libc_check_config step. 2016-08-23 11:00:27 -07:00
arm.sh First stab at multilib/uClibc. 2016-08-23 11:00:27 -07:00
avr.sh avr: add support for AVR 8-bit architecture 2015-06-21 20:49:10 -03:00
m68k.sh uClibc: Split configuration tweaker into per-arch functions. 2016-08-23 11:00:27 -07:00
microblaze.sh uClibc: Split configuration tweaker into per-arch functions. 2016-08-23 11:00:27 -07:00
mips.sh First stab at multilib/uClibc. 2016-08-23 11:00:27 -07:00
nios2.sh libc/*.sh: Deprecate libc_check_config step. 2016-08-23 11:00:27 -07:00
powerpc.sh uClibc: Split configuration tweaker into per-arch functions. 2016-08-23 11:00:27 -07:00
s390.sh Change multilib functions to set the variable. 2016-08-23 11:00:27 -07:00
sh.sh Support multilib in sh/uClibc. 2016-08-23 11:00:27 -07:00
sparc.sh uClibc: Split configuration tweaker into per-arch functions. 2016-08-23 11:00:27 -07:00
x86.sh Update x86.sh 2016-08-25 18:00:56 -07:00
xtensa.sh xtensa: fix endianness support 2016-11-22 10:48:34 -08:00