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>
This commit is contained in:
Yann E. MORIN" 2011-04-24 18:57:01 +02:00
parent e190682b9d
commit 3e05fb91f5

View File

@ -347,6 +347,19 @@ mungeuClibcConfig() {
;;
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