mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 12:57:53 +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
|
||||
# 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/
|
||||
|
Loading…
Reference in New Issue
Block a user