scripts/functions: use endian string in tests
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Nov 20 21:01:34 2011 +0100 (2011-11-20)
changeset 277388e318f9540f
parent 2772 d4ac8609878e
child 2774 32dabc0285d6
scripts/functions: use endian string in tests

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
scripts/functions
     1.1 --- a/scripts/functions	Mon Nov 14 19:13:00 2011 +0100
     1.2 +++ b/scripts/functions	Sun Nov 20 21:01:34 2011 +0100
     1.3 @@ -950,13 +950,15 @@
     1.4  # sample saving sequence.
     1.5  CT_DoBuildTargetTuple() {
     1.6      # Set the endianness suffix, and the default endianness gcc option
     1.7 -    case "${CT_ARCH_BE},${CT_ARCH_LE}" in
     1.8 -        y,) target_endian_eb=eb
     1.9 +    case "${CT_ARCH_ENDIAN}" in
    1.10 +        big)
    1.11 +            target_endian_eb=eb
    1.12              target_endian_el=
    1.13              CT_ARCH_ENDIAN_CFLAG="-mbig-endian"
    1.14              CT_ARCH_ENDIAN_LDFLAG="-EB"
    1.15              ;;
    1.16 -        ,y) target_endian_eb=
    1.17 +        little)
    1.18 +            target_endian_eb=
    1.19              target_endian_el=el
    1.20              CT_ARCH_ENDIAN_CFLAG="-mlittle-endian"
    1.21              CT_ARCH_ENDIAN_LDFLAG="-EL"