1.1 --- a/scripts/build/libc/uClibc.sh Sat Jan 23 19:02:46 2010 +0100
1.2 +++ b/scripts/build/libc/uClibc.sh Sat Jan 23 22:06:11 2010 +0100
1.3 @@ -189,12 +189,19 @@
1.4 (
1.5
1.6 # Hack our target in the config file.
1.7 + case "${CT_ARCH}:${CT_ARCH_BITNESS}" in
1.8 + x86:32) arch=i386;;
1.9 + x86:64) arch=x86_64;;
1.10 + sh:32) arch="sh";;
1.11 + sh:64) arch="sh64";;
1.12 + *) arch="${CT_ARCH}";;
1.13 + esac
1.14 # Also remove stripping: its the responsibility of the
1.15 # firmware builder to strip or not.
1.16 cat <<-ENDSED
1.17 s/^(TARGET_.*)=y$/# \\1 is not set/
1.18 - s/^# TARGET_${CT_ARCH} is not set/TARGET_${CT_ARCH}=y/
1.19 - s/^TARGET_ARCH=".*"/TARGET_ARCH="${CT_ARCH}"/
1.20 + s/^# TARGET_${arch} is not set/TARGET_${arch}=y/
1.21 + s/^TARGET_ARCH=".*"/TARGET_ARCH="${arch}"/
1.22 s/.*(DOSTRIP).*/# \\1 is not set/
1.23 ENDSED
1.24