summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2013-08-09 19:23:40 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-08-10 08:30:08 (GMT)
commitc798bec25b0f70061dcdb154708e41b962e6b74f (patch)
treeeab3614b0212005fbdd1992dde48aa0c9b45416e
parent149e4f89604880c355eb8af968b78647ab47fac9 (diff)
downloadbuildroot-c798bec25b0f70061dcdb154708e41b962e6b74f.tar.gz
buildroot-c798bec25b0f70061dcdb154708e41b962e6b74f.tar.bz2
uclibc: set MMU usage accordingly
On architectures that lack a MMU (like blackfin) uclibc just undefined ARCH_HAS_MMU which disabled ARCH_USE_MMU. But for other architectures which may or may not have one like ARM we need to set this according to user choice. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/uclibc/uclibc.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/uclibc/uclibc.mk b/package/uclibc/uclibc.mk
index 644c531..e3681c7 100644
--- a/package/uclibc/uclibc.mk
+++ b/package/uclibc/uclibc.mk
@@ -242,6 +242,20 @@ endef
endif
#
+# MMU
+#
+
+ifeq ($(BR2_USE_MMU),y)
+define UCLIBC_MMU_CONFIG
+ $(call UCLIBC_OPT_SET,ARCH_USE_MMU,y,$(@D))
+endef
+else
+define UCLIBC_MMU_CONFIG
+ $(call UCLIBC_OPT_UNSET,ARCH_USE_MMU,$(@D))
+endef
+endif
+
+#
# IPv6
#