mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 22:52:23 +00:00
libc/uClibc: use endian string in tests
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
756d7e704e
commit
1185c9bf05
@ -320,15 +320,17 @@ mungeuClibcConfig() {
|
|||||||
|
|
||||||
# Accomodate for old and new uClibc versions, where the
|
# Accomodate for old and new uClibc versions, where the
|
||||||
# way to select between big/little endian has changed
|
# way to select between big/little endian has changed
|
||||||
case "${CT_ARCH_BE},${CT_ARCH_LE}" in
|
case "${CT_ARCH_ENDIAN}" in
|
||||||
y,) cat <<-ENDSED
|
big)
|
||||||
|
cat <<-ENDSED
|
||||||
s/.*(ARCH_LITTLE_ENDIAN).*/# \\1 is not set/
|
s/.*(ARCH_LITTLE_ENDIAN).*/# \\1 is not set/
|
||||||
s/.*(ARCH_BIG_ENDIAN).*/\\1=y/
|
s/.*(ARCH_BIG_ENDIAN).*/\\1=y/
|
||||||
s/.*(ARCH_WANTS_LITTLE_ENDIAN).*/# \\1 is not set/
|
s/.*(ARCH_WANTS_LITTLE_ENDIAN).*/# \\1 is not set/
|
||||||
s/.*(ARCH_WANTS_BIG_ENDIAN).*/\\1=y/
|
s/.*(ARCH_WANTS_BIG_ENDIAN).*/\\1=y/
|
||||||
ENDSED
|
ENDSED
|
||||||
;;
|
;;
|
||||||
,y) cat <<-ENDSED
|
little)
|
||||||
|
cat <<-ENDSED
|
||||||
s/.*(ARCH_LITTLE_ENDIAN).*/\\1=y/
|
s/.*(ARCH_LITTLE_ENDIAN).*/\\1=y/
|
||||||
s/.*(ARCH_BIG_ENDIAN).*/# \\1 is not set/
|
s/.*(ARCH_BIG_ENDIAN).*/# \\1 is not set/
|
||||||
s/.*(ARCH_WANTS_LITTLE_ENDIAN).*/\\1=y/
|
s/.*(ARCH_WANTS_LITTLE_ENDIAN).*/\\1=y/
|
||||||
|
Loading…
Reference in New Issue
Block a user