scripts/build/arch/mips.sh
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Wed Jun 25 23:33:01 2014 +0200 (2014-06-25)
changeset 3325 069f43a215cc
parent 3169 9d0b37f08a10
permissions -rw-r--r--
all: fix wildcard to work with make-4.x

In make-3.8x, the $(wildacrd) function would sort the entries,
while in make-4.x, it would just return the entries in any
unpredictable order [*]

Use the $(sort) function to get reproducible behaviour.

[*] Well, most probably the roder the entries appear when read
from readdir()

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