mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-22 06:07:49 +00:00
6c6829a061
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>
23 lines
940 B
Plaintext
23 lines
940 B
Plaintext
# 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
|
|
##
|
|
## help The xtensa architecture
|
|
## help
|
|
## help Xtensa is a configurable and extensible processor architecture.
|
|
## help Supporting a specific configuration typically requires minor
|
|
## help modifications to a small set of configuration files in various
|
|
## help development tools. This process is automated and only requires
|
|
## help a configuration specific 'overlay' file.
|
|
## help
|
|
## help For a custom configuration, select the XTENSA_CUSTOM option and
|
|
## help provide the name of the processor configuration through the
|
|
## help CT_ARCH_XTENSA_CUSTOM_NAME option.
|
|
## help
|
|
## help The default option (ARCH_xtensa_fsf) uses a built-in configuration,
|
|
## help which may or may not work for a particular Xtensa processor.
|