diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-11-20 21:08:27 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-11-20 21:08:27 +0100 |
commit | 1185c9bf0566fb58a3d61642ffcf0899fe71d26b (patch) | |
tree | 71146b80ed0e7010bffa74004a39f5f92a7b6e72 | |
parent | 756d7e704ecb0ca41b28c3ed1023e04f508a0c70 (diff) | |
download | crosstool-ng-1185c9bf0566fb58a3d61642ffcf0899fe71d26b.tar.gz crosstool-ng-1185c9bf0566fb58a3d61642ffcf0899fe71d26b.tar.bz2 crosstool-ng-1185c9bf0566fb58a3d61642ffcf0899fe71d26b.zip |
libc/uClibc: use endian string in tests
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
-rw-r--r-- | scripts/build/libc/uClibc.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/build/libc/uClibc.sh b/scripts/build/libc/uClibc.sh index 795c04fc..6d17a5e8 100644 --- a/scripts/build/libc/uClibc.sh +++ b/scripts/build/libc/uClibc.sh @@ -320,15 +320,17 @@ mungeuClibcConfig() { # 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/ |