mm: add kconfig option to control the memory manger strategy choice.

since will will porvide more the one  strategy in future.

Change-Id: I73b900c6571f9b71b8239dd72006bdd0a68ee64d
This commit is contained in:
mage1
2021-03-03 14:13:37 +08:00
committed by Xiang Xiao
parent 635cfadc25
commit 874ecbe2f3
2 changed files with 21 additions and 0 deletions
+17
View File
@@ -3,6 +3,23 @@
# see the file kconfig-language.txt in the NuttX tools repository.
#
choice
prompt "Build heap manager"
default MM_DEFAULT_MANAGER
config MM_DEFAULT_MANAGER
bool "Default heap manager"
---help---
NuttX original memory manager strategy.
config MM_CUSTOMIZE_MANAGER
bool "Customized heap manager"
---help---
Customized memory manger policy. The build will fail
if the MM heap module not defined by customer.
endchoice
config MM_KERNEL_HEAP
bool "Support a protected, kernel heap"
default y