mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-03-11 15:04:19 +00:00
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>
38 lines
1018 B
Bash
38 lines
1018 B
Bash
# Compute sh-specific values
|
|
|
|
CT_DoArchTupleValues () {
|
|
# The architecture part of the tuple:
|
|
CT_TARGET_ARCH="${CT_ARCH_SH_VARIANT}${CT_ARCH_SUFFIX:-${target_endian_eb}}"
|
|
|
|
# gcc ./configure flags
|
|
CT_ARCH_WITH_ARCH=
|
|
CT_ARCH_WITH_ABI=
|
|
CT_ARCH_WITH_CPU=
|
|
CT_ARCH_WITH_TUNE=
|
|
CT_ARCH_WITH_FPU=
|
|
CT_ARCH_WITH_FLOAT=
|
|
|
|
# Endianness stuff
|
|
case "${CT_ARCH_ENDIAN}" in
|
|
big) CT_ARCH_ENDIAN_CFLAG=-mb;;
|
|
little) CT_ARCH_ENDIAN_CFLAG=-ml;;
|
|
esac
|
|
|
|
# CFLAGS
|
|
case "${CT_ARCH_SH_VARIANT}" in
|
|
sh3) CT_ARCH_ARCH_CFLAG=-m3;;
|
|
sh4*)
|
|
# softfp is not possible for SuperH, no need to test for it.
|
|
case "${CT_ARCH_FLOAT}" in
|
|
hard)
|
|
CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}"
|
|
;;
|
|
soft)
|
|
CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu"
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
CT_ARCH_FLOAT_CFLAG=
|
|
}
|