From: Philipp Tomsich Date: Fri, 30 Jun 2017 16:57:25 +0000 (+0200) Subject: spl: Kconfig: split SYS_MALLOC_SIMPLE for TPL and SPL X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=d60b5f74fd228baa40f8eb46e1e66cafc643b59c;p=u-boot.git spl: Kconfig: split SYS_MALLOC_SIMPLE for TPL and SPL As include/malloc.h already checks for SYS_MALLOC_SIMPLE using the CONFIG_IS_ENABLED macro, we need to move to having separate entries as we switch to fully separate configuration for SPL and TPL. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 8ce9c39e35..ad7747ebfc 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -62,6 +62,15 @@ config SPL_SYS_MALLOC_SIMPLE this will make the SPL binary smaller at the cost of more heap usage as the *_simple malloc functions do not re-use free-ed mem. +config TPL_SYS_MALLOC_SIMPLE + bool + prompt "Only use malloc_simple functions in the TPL" + help + Say Y here to only use the *_simple malloc functions from + malloc_simple.c, rather then using the versions from dlmalloc.c; + this will make the TPL binary smaller at the cost of more heap + usage as the *_simple malloc functions do not re-use free-ed mem. + config SPL_STACK_R bool "Enable SDRAM location for SPL stack" help