summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-04-24 16:57:01 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-04-24 16:57:01 (GMT)
commit3e05fb91f56c151f44a565f3a325649aa6182826 (patch)
treef29d5e073bdbaf911512f98589f5102730ca216c
parente190682b9d2c2921ee453b11ddb09ecbd5d80ef3 (diff)
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>
-rw-r--r--scripts/build/libc/uClibc.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/build/libc/uClibc.sh b/scripts/build/libc/uClibc.sh
index 35b5e0e..5a72e92 100644
--- a/scripts/build/libc/uClibc.sh
+++ b/scripts/build/libc/uClibc.sh
@@ -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