2011-07-17 14:54:50 +00:00
|
|
|
# Compute MIPS-specific values
|
2007-09-14 21:17:59 +00:00
|
|
|
|
2008-10-23 13:00:45 +00:00
|
|
|
CT_DoArchTupleValues() {
|
2010-02-20 06:35:02 +00:00
|
|
|
# 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
|
2008-05-14 17:49:52 +00:00
|
|
|
|
|
|
|
# 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
|
2010-09-12 20:14:04 +00:00
|
|
|
|
|
|
|
# Override ABI flags
|
|
|
|
CT_ARCH_ABI_CFLAG="-mabi=${CT_ARCH_mips_ABI}"
|
|
|
|
CT_ARCH_WITH_ABI="--with-abi=${CT_ARCH_mips_ABI}"
|
2007-09-14 21:17:59 +00:00
|
|
|
}
|