# HG changeset patch # User "Yann E. MORIN" # Date 1303664221 -7200 # Node ID 3954053fb678d7959ae21333be9ba197dcaca43c # Parent 15f5f431ec9eb6682cf3c9ba4bbcf94d074f1cff libc/uClibc: use MMU settings Enforce the MMU settings from the crosstool-NG configuration. Signed-off-by: "Yann E. MORIN" diff -r 15f5f431ec9e -r 3954053fb678 scripts/build/libc/uClibc.sh --- a/scripts/build/libc/uClibc.sh Sun Apr 24 16:14:41 2011 +0200 +++ b/scripts/build/libc/uClibc.sh Sun Apr 24 18:57:01 2011 +0200 @@ -347,6 +347,19 @@ ;; esac + # Accomodate for old and new uClibc versions, where the + # MMU settings has different config knobs + if [ "${CT_ARCH_USE_MMU}" = "y" ]; then + cat <<-ENDSED + s/.*(ARCH_HAS_MMU).*/\\1=y\nARCH_USE_MMU=y/ + ENDSED + else + cat <<-ENDSED + s/.*(ARCH_HAS_MMU).*/# \\1 is not set/ + /.*(ARCH_USE_MMU).*/d + ENDSED + fi + # Accomodate for old and new uClibc version, where the # way to select between hard/soft float has changed case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in