summaryrefslogtreecommitdiff
path: root/scripts/build/libc/uClibc.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-01-23 21:06:11 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-01-23 21:06:11 (GMT)
commit542419d6a093121909c6d90ef0c421769737b288 (patch)
treed5a87fb55bb0386daba49c6f96ffd4b77e863d9d /scripts/build/libc/uClibc.sh
parent994427dbbe730a7e715a01b94e92e7fa3810b603 (diff)
libc/uClibc: fix the breakage for x86 and Super-H, after the 32/64 merge
Diffstat (limited to 'scripts/build/libc/uClibc.sh')
-rw-r--r--scripts/build/libc/uClibc.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/build/libc/uClibc.sh b/scripts/build/libc/uClibc.sh
index b7fd737..0d4775e 100644
--- a/scripts/build/libc/uClibc.sh
+++ b/scripts/build/libc/uClibc.sh
@@ -189,12 +189,19 @@ mungeuClibcConfig() {
(
# Hack our target in the config file.
+ case "${CT_ARCH}:${CT_ARCH_BITNESS}" in
+ x86:32) arch=i386;;
+ x86:64) arch=x86_64;;
+ sh:32) arch="sh";;
+ sh:64) arch="sh64";;
+ *) arch="${CT_ARCH}";;
+ esac
# Also remove stripping: its the responsibility of the
# firmware builder to strip or not.
cat <<-ENDSED
s/^(TARGET_.*)=y$/# \\1 is not set/
- s/^# TARGET_${CT_ARCH} is not set/TARGET_${CT_ARCH}=y/
- s/^TARGET_ARCH=".*"/TARGET_ARCH="${CT_ARCH}"/
+ s/^# TARGET_${arch} is not set/TARGET_${arch}=y/
+ s/^TARGET_ARCH=".*"/TARGET_ARCH="${arch}"/
s/.*(DOSTRIP).*/# \\1 is not set/
ENDSED