mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-22 14:12:26 +00:00
dc5048b6d2
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
22 lines
633 B
Bash
22 lines
633 B
Bash
# Compute MIPS-specific values
|
|
|
|
CT_DoArchTupleValues() {
|
|
# The architecture part of the tuple, override only for 64-bit
|
|
if [ "${CT_ARCH_64}" = "y" ]; then
|
|
CT_TARGET_ARCH="mips64${target_endian_el}"
|
|
else
|
|
# The architecture part of the tuple:
|
|
CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}"
|
|
fi
|
|
|
|
# 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}"
|
|
}
|