scripts/build/libc_uClibc.sh
changeset 397 046dfd46798c
parent 378 c5691d002539
child 486 92f6149c4275
     1.1 --- a/scripts/build/libc_uClibc.sh	Fri Sep 14 16:02:45 2007 +0000
     1.2 +++ b/scripts/build/libc_uClibc.sh	Sun Sep 16 17:59:18 2007 +0000
     1.3 @@ -164,6 +164,20 @@
     1.4  s/.*(DOSTRIP).*/# \\1 is not set/
     1.5  ENDSED
     1.6  
     1.7 +    # Ah. We may one day need architecture-specific handler here...
     1.8 +    # Hack the ARM {E,O}ABI into the config file
     1.9 +    if [ "${CT_ARCH_ARM_EABI}" = "y" ]; then
    1.10 +        cat >>"${munge_file}" <<-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 >>"${munge_file}" <<-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 +
    1.21      # Accomodate for old and new uClibc versions, where the
    1.22      # way to select between big/little endian has changed
    1.23      case "${CT_ARCH_BE},${CT_ARCH_LE}" in
    1.24 @@ -198,7 +212,7 @@
    1.25              ;;
    1.26      esac
    1.27  
    1.28 -    # Change paths to work with crosstool
    1.29 +    # Change paths to work with crosstool-NG
    1.30      # From http://www.uclibc.org/cgi-bin/viewcvs.cgi?rev=16846&view=rev
    1.31      #  " we just want the kernel headers, not the whole kernel source ...
    1.32      #  " so people may need to update their paths slightly