Skip to content
Snippets Groups Projects
Commit d60b5f74 authored by Philipp Tomsich's avatar Philipp Tomsich
Browse files

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: default avatarPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 1749858a
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,15 @@ config SPL_SYS_MALLOC_SIMPLE ...@@ -62,6 +62,15 @@ config SPL_SYS_MALLOC_SIMPLE
this will make the SPL binary smaller at the cost of more heap 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. 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 config SPL_STACK_R
bool "Enable SDRAM location for SPL stack" bool "Enable SDRAM location for SPL stack"
help help
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment