summaryrefslogtreecommitdiff
path: root/scripts/build/arch/mips.sh
blob: c5b18e5b9ae7065e28eda80590332e8426b8d27f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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
}