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>
     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 }