mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-03 03:26:39 +00:00
d0cc0b3a56
Convert MIPS and Sparc over to using the new target_bits_64 variable. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
17 lines
487 B
Bash
17 lines
487 B
Bash
# Compute MIPS-specific values
|
|
|
|
CT_DoArchTupleValues() {
|
|
# The architecture part of the tuple
|
|
CT_TARGET_ARCH="${CT_ARCH}${target_bits_64}${CT_ARCH_SUFFIX:-${target_endian_el}}"
|
|
|
|
# Override CFLAGS for endianness:
|
|
case "${CT_ARCH_ENDIAN}" in
|
|
big) CT_ARCH_ENDIAN_CFLAG="-EB";;
|
|
little) CT_ARCH_ENDIAN_CFLAG="-EL";;
|
|
esac
|
|
|
|
# Override ABI flags
|
|
CT_ARCH_ABI_CFLAG="-mabi=${CT_ARCH_mips_ABI}"
|
|
CT_ARCH_WITH_ABI="--with-abi=${CT_ARCH_mips_ABI}"
|
|
}
|