libc/uClibc: change munging code based on target arch
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Sep 10 13:23:58 2010 +0200 (2010-09-10)
changeset 2115e565ce1ef492
parent 2114 b1d27d43a825
child 2116 75ee9a87c0e4
libc/uClibc: change munging code based on target arch

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
scripts/build/libc/uClibc.sh
     1.1 --- a/scripts/build/libc/uClibc.sh	Sun Sep 12 00:07:41 2010 +0200
     1.2 +++ b/scripts/build/libc/uClibc.sh	Fri Sep 10 13:23:58 2010 +0200
     1.3 @@ -282,20 +282,22 @@
     1.4  		ENDSED
     1.5  
     1.6      # Ah. We may one day need architecture-specific handler here...
     1.7 -    if [ "${CT_ARCH}" = "arm" ]; then
     1.8 -        # Hack the ARM {E,O}ABI into the config file
     1.9 -        if [ "${CT_ARCH_ARM_EABI}" = "y" ]; then
    1.10 -            cat <<-ENDSED
    1.11 -				s/.*(CONFIG_ARM_OABI).*/# \\1 is not set/
    1.12 -				s/.*(CONFIG_ARM_EABI).*/\\1=y/
    1.13 -				ENDSED
    1.14 -        else
    1.15 -            cat <<-ENDSED
    1.16 -				s/.*(CONFIG_ARM_OABI).*/\\1=y/
    1.17 -				s/.*(CONFIG_ARM_EABI).*/# \\1 is not set/
    1.18 -				ENDSED
    1.19 -        fi
    1.20 -    fi
    1.21 +    case "${CT_ARCH}" in
    1.22 +        arm)
    1.23 +            # Hack the ARM {E,O}ABI into the config file
    1.24 +            if [ "${CT_ARCH_ARM_EABI}" = "y" ]; then
    1.25 +                cat <<-ENDSED
    1.26 +					s/.*(CONFIG_ARM_OABI).*/# \\1 is not set/
    1.27 +					s/.*(CONFIG_ARM_EABI).*/\\1=y/
    1.28 +					ENDSED
    1.29 +            else
    1.30 +                cat <<-ENDSED
    1.31 +					s/.*(CONFIG_ARM_OABI).*/\\1=y/
    1.32 +					s/.*(CONFIG_ARM_EABI).*/# \\1 is not set/
    1.33 +					ENDSED
    1.34 +            fi
    1.35 +            ;;
    1.36 +    esac
    1.37  
    1.38      # Accomodate for old and new uClibc versions, where the
    1.39      # way to select between big/little endian has changed