From c798bec25b0f70061dcdb154708e41b962e6b74f Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Fri, 9 Aug 2013 16:23:40 -0300 Subject: [PATCH] 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 Signed-off-by: Thomas Petazzoni --- package/uclibc/uclibc.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/package/uclibc/uclibc.mk b/package/uclibc/uclibc.mk index 644c531b56..e3681c7689 100644 --- a/package/uclibc/uclibc.mk +++ b/package/uclibc/uclibc.mk @@ -241,6 +241,20 @@ define UCLIBC_LARGEFILE_CONFIG 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 # -- 2.30.2