libc/uClibc: do not mangle ARM {E,O}ABI when ARCH != ARM 1.5
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jan 09 18:30:34 2010 +0100 (2010-01-09)
branch1.5
changeset 170939970edb42e5
parent 1708 49c09d2e27fe
child 1710 56653c9b885e
libc/uClibc: do not mangle ARM {E,O}ABI when ARCH != ARM

(manualy transplanted from 2ad2cbc1f709f48a195746476a71f1244cc67cee)
(transplanted from 2ad2cbc1f709f48a195746476a71f1244cc67cee))
scripts/build/libc/uClibc.sh
     1.1 --- a/scripts/build/libc/uClibc.sh	Wed Dec 30 15:38:03 2009 +0100
     1.2 +++ b/scripts/build/libc/uClibc.sh	Sat Jan 09 18:30:34 2010 +0100
     1.3 @@ -198,17 +198,19 @@
     1.4  ENDSED
     1.5  
     1.6      # Ah. We may one day need architecture-specific handler here...
     1.7 -    # Hack the ARM {E,O}ABI into the config file
     1.8 -    if [ "${CT_ARCH_ARM_EABI}" = "y" ]; then
     1.9 -        cat >>"${munge_file}" <<-ENDSED
    1.10 +    if [ "${CT_ARCH}" = "arm" ]; then
    1.11 +        # Hack the ARM {E,O}ABI into the config file
    1.12 +        if [ "${CT_ARCH_ARM_EABI}" = "y" ]; then
    1.13 +            cat >>"${munge_file}" <<-ENDSED
    1.14  s/.*(CONFIG_ARM_OABI).*/# \\1 is not set/
    1.15  s/.*(CONFIG_ARM_EABI).*/\\1=y/
    1.16  ENDSED
    1.17 -    else
    1.18 -        cat >>"${munge_file}" <<-ENDSED
    1.19 +        else
    1.20 +            cat >>"${munge_file}" <<-ENDSED
    1.21  s/.*(CONFIG_ARM_OABI).*/\\1=y/
    1.22  s/.*(CONFIG_ARM_EABI).*/# \\1 is not set/
    1.23  ENDSED
    1.24 +        fi
    1.25      fi
    1.26  
    1.27      # Accomodate for old and new uClibc versions, where the