[Buildroot] [PATCH] toolchain: add a USE_MMU build option
Mike Frysinger
vapier at gentoo.org
Sat Nov 20 05:11:14 UTC 2010
Some packages need to know whether the MMU is in play, so add a toolchain
option to expose the feature to them.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
toolchain/helpers.mk | 2 ++
toolchain/toolchain-common.in | 7 +++++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/toolchain/helpers.mk b/toolchain/helpers.mk
index 3b4a603..c2b56b6 100644
--- a/toolchain/helpers.mk
+++ b/toolchain/helpers.mk
@@ -155,6 +155,7 @@ check_glibc = \
$(call check_glibc_feature,BR2_INET_IPV6,IPv6 support) ;\
$(call check_glibc_feature,BR2_INET_RPC,RPC support) ;\
$(call check_glibc_feature,BR2_ENABLE_LOCALE,Locale support) ;\
+ $(call check_glibc_feature,BR2_USE_MMU,MMU support) ;\
$(call check_glibc_feature,BR2_USE_WCHAR,Wide char support) ;\
$(call check_glibc_feature,BR2_PROGRAM_INVOCATION,Program invocation support)
@@ -206,6 +207,7 @@ check_uclibc = \
$(call check_uclibc_feature,__UCLIBC_HAS_IPV6__,BR2_INET_IPV6,$${UCLIBC_CONFIG_FILE},IPv6 support) ;\
$(call check_uclibc_feature,__UCLIBC_HAS_RPC__,BR2_INET_RPC,$${UCLIBC_CONFIG_FILE},RPC support) ;\
$(call check_uclibc_feature,__UCLIBC_HAS_LOCALE__,BR2_ENABLE_LOCALE,$${UCLIBC_CONFIG_FILE},Locale support) ;\
+ $(call check_uclibc_feature,__UCLIBC_USE_MMU__,BR2_USE_MMU,$${UCLIBC_CONFIG_FILE},MMU support) ;\
$(call check_uclibc_feature,__UCLIBC_HAS_WCHAR__,BR2_USE_WCHAR,$${UCLIBC_CONFIG_FILE},Wide char support) ;\
$(call check_uclibc_feature,__UCLIBC_HAS_PROGRAM_INVOCATION_NAME__,BR2_PROGRAM_INVOCATION,$${UCLIBC_CONFIG_FILE},Program invocation support) ;\
diff --git a/toolchain/toolchain-common.in b/toolchain/toolchain-common.in
index f67c30a..efb5863 100644
--- a/toolchain/toolchain-common.in
+++ b/toolchain/toolchain-common.in
@@ -78,6 +78,13 @@ config BR2_NEEDS_GETTEXT_IF_LOCALE
bool
default y if (BR2_NEEDS_GETTEXT && BR2_ENABLE_LOCALE)
+config BR2_USE_MMU
+ bool "Enable MMU support"
+ default y
+ help
+ If your target has a MMU, you should say Y here. If you
+ are unsure, just say Y.
+
config BR2_USE_WCHAR
bool "Enable WCHAR support"
help
--
1.7.3.2
More information about the buildroot
mailing list