aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@seco.com>2023-08-08 18:53:20 -0400
committerTom Rini <trini@konsulko.com>2023-08-10 15:18:36 -0400
commit1bb52b9b88d0f608231fadb56f88b35c3c26522f (patch)
treedfaadf95c1a8f165afa44e4bf7ae83ff84be2b99
parent708cfa42215011e07955fb7b70f1db7e74b28734 (diff)
downloadu-boot-WIP/2023-08-10-spl-malloc-improvement-v2.zip
u-boot-WIP/2023-08-10-spl-malloc-improvement-v2.tar.gz
u-boot-WIP/2023-08-10-spl-malloc-improvement-v2.tar.bz2
malloc: Enable SYS_MALLOC_RUNTIME_INIT by default in SPLWIP/2023-08-10-spl-malloc-improvement-v2
On boards with size restrictions, 1-2k can be a significant fraction of the binary size. Add a new SPL version of SYS_MALLOC_RUNTIME_INIT and enable it by default. Signed-off-by: Sean Anderson <sean.anderson@seco.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/Kconfig b/Kconfig
index 6a31bdc..2db04cd 100644
--- a/Kconfig
+++ b/Kconfig
@@ -381,6 +381,17 @@ config SYS_MALLOC_RUNTIME_INIT
reduce the size of U-Boot by letting malloc's data reside in .bss
instead of .data.
+config SPL_SYS_MALLOC_RUNTIME_INIT
+ bool "Initialize malloc's internal data at runtime in SPL"
+ default y
+ depends on SPL
+ help
+ Initialize malloc's internal data structures at SPL runtime, rather
+ than at compile-time. This is necessary if relocating the malloc arena
+ from a smaller static memory to a large DDR memory. It can also reduce
+ the size of U-Boot by letting malloc's data reside in .bss instead of
+ .data.
+
config TOOLS_DEBUG
bool "Enable debug information for tools"
help