]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
spl: Kconfig: split SYS_MALLOC_SIMPLE for TPL and SPL
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 30 Jun 2017 16:57:25 +0000 (18:57 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Sun, 13 Aug 2017 15:12:21 +0000 (17:12 +0200)
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 <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/spl/Kconfig

index 8ce9c39e359e534139119a01b799b64992ed02f9..ad7747ebfcf368ad3c9616ae2e7c9648a48b0bbc 100644 (file)
@@ -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