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() {
|
2013-01-20 12:58:22 +00:00
|
|
|
local _64
|
|
|
|
|
|
|
|
# The architecture part of the tuple
|
2010-02-20 06:35:02 +00:00
|
|
|
if [ "${CT_ARCH_64}" = "y" ]; then
|
2013-01-20 12:58:22 +00:00
|
|
|
_64="64"
|
2010-02-20 06:35:02 +00:00
|
|
|
fi
|
2013-01-20 12:58:22 +00:00
|
|
|
CT_TARGET_ARCH="${CT_ARCH}${_64}${CT_ARCH_SUFFIX:-${target_endian_el}}"
|
2008-05-14 17:49:52 +00:00
|
|
|
|
|
|
|
# Override CFLAGS for endianness:
|
2011-11-20 20:04:31 +00:00
|
|
|
case "${CT_ARCH_ENDIAN}" in
|
|
|
|
big) CT_ARCH_ENDIAN_CFLAG="-EB";;
|
|
|
|
little) CT_ARCH_ENDIAN_CFLAG="-EL";;
|
2008-05-14 17:49:52 +00:00
|
|
|
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
|
|
|
}
|