diff -r 19760eb7a090 -r a6c68712024f scripts/build/libc/uClibc.sh --- a/scripts/build/libc/uClibc.sh Mon Nov 14 18:54:37 2011 +0100 +++ b/scripts/build/libc/uClibc.sh Sun Nov 20 21:08:27 2011 +0100 @@ -320,15 +320,17 @@ # Accomodate for old and new uClibc versions, where the # way to select between big/little endian has changed - case "${CT_ARCH_BE},${CT_ARCH_LE}" in - y,) cat <<-ENDSED + case "${CT_ARCH_ENDIAN}" in + big) + cat <<-ENDSED s/.*(ARCH_LITTLE_ENDIAN).*/# \\1 is not set/ s/.*(ARCH_BIG_ENDIAN).*/\\1=y/ s/.*(ARCH_WANTS_LITTLE_ENDIAN).*/# \\1 is not set/ s/.*(ARCH_WANTS_BIG_ENDIAN).*/\\1=y/ ENDSED ;; - ,y) cat <<-ENDSED + little) + cat <<-ENDSED s/.*(ARCH_LITTLE_ENDIAN).*/\\1=y/ s/.*(ARCH_BIG_ENDIAN).*/# \\1 is not set/ s/.*(ARCH_WANTS_LITTLE_ENDIAN).*/\\1=y/