summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-12-19 11:28:55 -0700
committerTom Rini <trini@konsulko.com>2024-12-27 15:16:10 -0600
commit1bfbf09d5c811b64ecf4d644623ed0af73ab88b7 (patch)
tree36de3c710ae3e7f8b8ac2a83f83a8efbd1c84fee
parentc44c83f1fbddf47c81ff4e686f450b7e050dad01 (diff)
malloc: Provide a simple malloc for VPL
The VPL phase may want to use the smaller malloc() implementation, so add an option for this. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/spl/Kconfig.vpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/spl/Kconfig.vpl b/common/spl/Kconfig.vpl
index d06f36d4ee4..3dc0e95e09f 100644
--- a/common/spl/Kconfig.vpl
+++ b/common/spl/Kconfig.vpl
@@ -222,6 +222,15 @@ config VPL_SPI_FLASH_SUPPORT
lines). This enables the drivers in drivers/mtd/spi as part of a
VPL build. This normally requires VPL_SPI_SUPPORT.
+config VPL_SYS_MALLOC_SIMPLE
+ bool "Only use malloc_simple functions in the VPL"
+ default y
+ 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 VPL binary smaller at the cost of more heap
+ usage as the *_simple malloc functions do not re-use free-ed mem.
+
config VPL_TEXT_BASE
hex "VPL Text Base"
default 0x0