diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2016-10-24 21:48:57 +0000 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2016-11-22 10:48:34 -0800 |
commit | 6c6829a0610e6282be922183c9601cb2365df9a4 (patch) | |
tree | 1801f8bc2ec990477737067bffd8fb122b378fd8 /config/arch | |
parent | 0946ce59a09609b743b7dba40f7212778011f286 (diff) | |
download | crosstool-ng-6c6829a0610e6282be922183c9601cb2365df9a4.tar.gz crosstool-ng-6c6829a0610e6282be922183c9601cb2365df9a4.tar.bz2 crosstool-ng-6c6829a0610e6282be922183c9601cb2365df9a4.zip |
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>
Diffstat (limited to 'config/arch')
-rw-r--r-- | config/arch/xtensa.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/arch/xtensa.in b/config/arch/xtensa.in index e08b8424..3ffa4e80 100644 --- a/config/arch/xtensa.in +++ b/config/arch/xtensa.in @@ -1,6 +1,8 @@ # xtensa specific configuration file ## select ARCH_SUPPORTS_32 +## select ARCH_SUPPORTS_BOTH_ENDIAN +## select ARCH_DEFAULT_LE ## select ARCH_SUPPORTS_BOTH_MMU ## select ARCH_DEFAULT_HAS_MMU ## |