crosstool-ng/scripts/build/arch/mips.sh
Zhuang Yuyao f8ba6cb7e6 arch: add mips64
This adds initial mips64 config option and build script.
2010-02-20 07:35:02 +01:00

18 lines
506 B
Bash

# Compute IA-64-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_BE},${CT_ARCH_LE}" in
y,) CT_ARCH_ENDIAN_CFLAG="-EB";;
,y) CT_ARCH_ENDIAN_CFLAG="-EL";;
esac
}