diff options
| author | Simon Glass <[email protected]> | 2024-12-07 10:24:00 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-12-12 16:35:23 -0600 |
| commit | 72cb9eb08cdd812d856cb547de682b1f4371b630 (patch) | |
| tree | 133fd0ddac3531db5212781cbbf274b6711d4cdd /common | |
| parent | 3f1167fd0008fdc859318ced2c0140866d564a4a (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 <[email protected]>
Diffstat (limited to 'common')
| -rw-r--r-- | common/spl/Kconfig.vpl | 9 |
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 |
