Commit c798bec2 authored by Gustavo Zacarias's avatar Gustavo Zacarias Committed by Thomas Petazzoni
Browse files

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: default avatarGustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 149e4f89
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -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
#