libc/uClibc: use endian string in tests
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Nov 20 21:08:27 2011 +0100 (2011-11-20)
changeset 2777a6c68712024f
parent 2776 5f557056c530
child 2778 986e1c75432a
libc/uClibc: use endian string in tests

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
scripts/build/libc/uClibc.sh
     1.1 --- a/scripts/build/libc/uClibc.sh	Sun Nov 20 21:06:36 2011 +0100
     1.2 +++ b/scripts/build/libc/uClibc.sh	Sun Nov 20 21:08:27 2011 +0100
     1.3 @@ -320,15 +320,17 @@
     1.4  
     1.5      # Accomodate for old and new uClibc versions, where the
     1.6      # way to select between big/little endian has changed
     1.7 -    case "${CT_ARCH_BE},${CT_ARCH_LE}" in
     1.8 -        y,) cat <<-ENDSED
     1.9 +    case "${CT_ARCH_ENDIAN}" in
    1.10 +        big)
    1.11 +            cat <<-ENDSED
    1.12  				s/.*(ARCH_LITTLE_ENDIAN).*/# \\1 is not set/
    1.13  				s/.*(ARCH_BIG_ENDIAN).*/\\1=y/
    1.14  				s/.*(ARCH_WANTS_LITTLE_ENDIAN).*/# \\1 is not set/
    1.15  				s/.*(ARCH_WANTS_BIG_ENDIAN).*/\\1=y/
    1.16  				ENDSED
    1.17          ;;
    1.18 -        ,y) cat <<-ENDSED
    1.19 +        little)
    1.20 +            cat <<-ENDSED
    1.21  				s/.*(ARCH_LITTLE_ENDIAN).*/\\1=y/
    1.22  				s/.*(ARCH_BIG_ENDIAN).*/# \\1 is not set/
    1.23  				s/.*(ARCH_WANTS_LITTLE_ENDIAN).*/\\1=y/