scripts/build/arch/mips.sh
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Mon May 12 00:09:31 2014 +0200 (2014-05-12)
changeset 3323 99029fac116b
parent 3169 9d0b37f08a10
permissions -rw-r--r--
arch: use the newly introduced target_bits_64

Convert MIPS and Sparc over to using the new target_bits_64 variable.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 # Compute MIPS-specific values
     2 
     3 CT_DoArchTupleValues() {
     4     # The architecture part of the tuple
     5     CT_TARGET_ARCH="${CT_ARCH}${target_bits_64}${CT_ARCH_SUFFIX:-${target_endian_el}}"
     6 
     7     # Override CFLAGS for endianness:
     8     case "${CT_ARCH_ENDIAN}" in
     9         big)    CT_ARCH_ENDIAN_CFLAG="-EB";;
    10         little) CT_ARCH_ENDIAN_CFLAG="-EL";;
    11     esac
    12 
    13     # Override ABI flags
    14     CT_ARCH_ABI_CFLAG="-mabi=${CT_ARCH_mips_ABI}"
    15     CT_ARCH_WITH_ABI="--with-abi=${CT_ARCH_mips_ABI}"
    16 }