crosstool-ng/scripts/build/arch/mips.sh

17 lines
487 B
Bash
Raw Normal View History

# 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}"
}