spl: Enable CONFIG_SPL_SYS_MALLOC_F where needed

Enable CONFIG_SPL_SYS_MALLOC_F for boards which have a non-zero value
for CONFIG_SPL_SYS_MALLOC_F_LEN

Note that the default is yes in most cases, so no changes are needed to
board defconfig options.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2023-09-26 08:14:25 -06:00 committed by Tom Rini
parent fd8497dae5
commit 7431b0ad54
2 changed files with 6 additions and 0 deletions

View file

@ -6,6 +6,9 @@ config SYS_SOC
config SYS_MALLOC_F_LEN
default 0x2000
config SPL_SYS_MALLOC_F
default y
config SPL_SYS_MALLOC_F_LEN
default 0x2000

View file

@ -30,6 +30,9 @@ config SPL_SIZE_LIMIT_PROVIDE_STACK
config SPL_STACK_R_ADDR
default 0x00800000 if TARGET_SOCFPGA_GEN5
config SPL_SYS_MALLOC_F
default y if TARGET_SOCFPGA_GEN5
config SPL_SYS_MALLOC_F_LEN
default 0x800 if TARGET_SOCFPGA_GEN5