libc/uClibc: do not mangle ARM {E,O}ABI when ARCH != ARM
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Jan 01 16:52:55 2010 +0100 (2010-01-01)
changeset 16752ad2cbc1f709
parent 1674 8699778e3888
child 1677 a80391de41c1
child 1678 ac247da318a1
libc/uClibc: do not mangle ARM {E,O}ABI when ARCH != ARM
scripts/build/libc/uClibc.sh
     1.1 --- a/scripts/build/libc/uClibc.sh	Fri Jan 01 18:47:20 2010 +0100
     1.2 +++ b/scripts/build/libc/uClibc.sh	Fri Jan 01 16:52:55 2010 +0100
     1.3 @@ -201,17 +201,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 <<-ENDSED
    1.10 -			s/.*(CONFIG_ARM_OABI).*/# \\1 is not set/
    1.11 -			s/.*(CONFIG_ARM_EABI).*/\\1=y/
    1.12 -			ENDSED
    1.13 -    else
    1.14 -        cat <<-ENDSED
    1.15 -			s/.*(CONFIG_ARM_OABI).*/\\1=y/
    1.16 -			s/.*(CONFIG_ARM_EABI).*/# \\1 is not set/
    1.17 -			ENDSED
    1.18 +    if [ "${CT_ARCH}" = "arm" ]; then
    1.19 +        # Hack the ARM {E,O}ABI into the config file
    1.20 +        if [ "${CT_ARCH_ARM_EABI}" = "y" ]; then
    1.21 +            cat <<-ENDSED
    1.22 +				s/.*(CONFIG_ARM_OABI).*/# \\1 is not set/
    1.23 +				s/.*(CONFIG_ARM_EABI).*/\\1=y/
    1.24 +				ENDSED
    1.25 +        else
    1.26 +            cat <<-ENDSED
    1.27 +				s/.*(CONFIG_ARM_OABI).*/\\1=y/
    1.28 +				s/.*(CONFIG_ARM_EABI).*/# \\1 is not set/
    1.29 +				ENDSED
    1.30 +        fi
    1.31      fi
    1.32  
    1.33      # Accomodate for old and new uClibc versions, where the