mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-29 17:18:53 +00:00
3ebc5d0c1e
This step was only used in uClibc. However, with upcoming multilib, the config management will have to be done for each variant differently, anyway. uClibc was the only user of libc_check_config step, as well as CT_CONFIG_DIR directory. Retire these. Two other clean-ups in uClibc.sh: - KERNEL_HEADERS check seems to be bogus, this config option is not present even in 0.9.30 - which is not supported already. - SHARED_LIB_LOADER_PREFIX was renamed to MULTILIB_DIR in 0.9.31, according to ChangeLog - and MULTILIB_DIR is passed from command line instead. Signed-off-by: Alexey Neyman <stilor@att.net>
42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Compute ARM-specific values
|
|
|
|
CT_DoArchTupleValues() {
|
|
# The architecture part of the tuple:
|
|
case "${CT_ARCH_BITNESS}" in
|
|
32)
|
|
CT_TARGET_ARCH="${CT_ARCH}${CT_ARCH_SUFFIX:-${target_endian_eb}}"
|
|
;;
|
|
64)
|
|
# ARM 64 (aka AArch64) is special
|
|
[ "${CT_ARCH_BE}" = "y" ] && target_endian_eb="_be"
|
|
CT_TARGET_ARCH="aarch64${CT_ARCH_SUFFIX:-${target_endian_eb}}"
|
|
;;
|
|
esac
|
|
|
|
# The system part of the tuple:
|
|
case "${CT_LIBC},${CT_ARCH_ARM_EABI}" in
|
|
*glibc,y) CT_TARGET_SYS=gnueabi;;
|
|
uClibc,y) CT_TARGET_SYS=uclibcgnueabi;;
|
|
musl,y) CT_TARGET_SYS=musleabi;;
|
|
*,y) CT_TARGET_SYS=eabi;;
|
|
esac
|
|
|
|
# Set the default instruction set mode
|
|
case "${CT_ARCH_ARM_MODE}" in
|
|
arm) ;;
|
|
thumb)
|
|
CT_ARCH_CC_CORE_EXTRA_CONFIG="--with-mode=thumb"
|
|
CT_ARCH_CC_EXTRA_CONFIG="--with-mode=thumb"
|
|
# CT_ARCH_TARGET_CFLAGS="-mthumb"
|
|
;;
|
|
esac
|
|
|
|
if [ "${CT_ARCH_ARM_INTERWORKING}" = "y" ]; then
|
|
CT_ARCH_TARGET_CFLAGS+=" -mthumb-interwork"
|
|
fi
|
|
|
|
if [ "${CT_ARCH_ARM_TUPLE_USE_EABIHF}" = "y" ]; then
|
|
CT_TARGET_SYS="${CT_TARGET_SYS}hf"
|
|
fi
|
|
}
|