libc/uClibc: use MMU settings
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Apr 24 18:57:01 2011 +0200 (2011-04-24)
changeset 24103954053fb678
parent 2409 15f5f431ec9e
child 2411 891d64465169
libc/uClibc: use MMU settings

Enforce the MMU settings from the crosstool-NG configuration.

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 Apr 24 16:14:41 2011 +0200
     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