scripts/build/libc/uClibc.sh
changeset 2410 3954053fb678
parent 2278 e86826b8621a
child 2578 35afb309f957
     1.1 --- a/scripts/build/libc/uClibc.sh	Sat Jan 22 22:36:20 2011 +0100
     1.2 +++ b/scripts/build/libc/uClibc.sh	Sun Apr 24 18:57:01 2011 +0200
     1.3 @@ -347,6 +347,19 @@
     1.4          ;;
     1.5      esac
     1.6  
     1.7 +    # Accomodate for old and new uClibc versions, where the
     1.8 +    # MMU settings has different config knobs
     1.9 +    if [ "${CT_ARCH_USE_MMU}" = "y" ]; then
    1.10 +        cat <<-ENDSED
    1.11 +			s/.*(ARCH_HAS_MMU).*/\\1=y\nARCH_USE_MMU=y/
    1.12 +			ENDSED
    1.13 +    else
    1.14 +        cat <<-ENDSED
    1.15 +			s/.*(ARCH_HAS_MMU).*/# \\1 is not set/
    1.16 +			/.*(ARCH_USE_MMU).*/d
    1.17 +			ENDSED
    1.18 +    fi
    1.19 +
    1.20      # Accomodate for old and new uClibc version, where the
    1.21      # way to select between hard/soft float has changed
    1.22      case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in