# HG changeset patch # User "Yann E. MORIN" # Date 1264280771 -3600 # Node ID 4f07fc2b449144f24ace800dc5e209fa04c981ea # Parent 8cde002bad62cb62d2cb2583e5a2ad6b1a8b18e4 libc/uClibc: fix the breakage for x86 and Super-H, after the 32/64 merge diff -r 8cde002bad62 -r 4f07fc2b4491 scripts/build/libc/uClibc.sh --- a/scripts/build/libc/uClibc.sh Sat Jan 23 19:02:46 2010 +0100 +++ b/scripts/build/libc/uClibc.sh Sat Jan 23 22:06:11 2010 +0100 @@ -189,12 +189,19 @@ ( # 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