mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 04:47:52 +00:00
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:
parent
e190682b9d
commit
3e05fb91f5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user