diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-08-01 15:33:41 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-07 13:41:44 -0400 |
commit | 3b7b73879f27d8a7b21792b3e9bb25dce1a5d082 (patch) | |
tree | a9d42d82398444df698916df298881440b141dfd /Kconfig | |
parent | af62d83cc0ee27ca5051718a0df44341f71abff1 (diff) | |
download | u-boot-3b7b73879f27d8a7b21792b3e9bb25dce1a5d082.tar.gz u-boot-3b7b73879f27d8a7b21792b3e9bb25dce1a5d082.tar.bz2 u-boot-3b7b73879f27d8a7b21792b3e9bb25dce1a5d082.zip |
common: fix detection of SYS_MALLOC_F_LEN=0x0
CONFIG_$(SPL_TPL_)SYS_MALLOC_F_LEN is defined as hex. If set to zero
manually, .config contains '0x0' and not '0' as value.
The default value for CONFIG_SPL_SYS_MALLOC_F_LEN should not be set to 0
but to 0x0 if CONFIG_SPL_FRAMEWORK=n to match a manually set value.
Fixes: c0126bd862a0 ("spl: Support bootstage, log, hash and early malloc in TPL")
Fixes: b61694705217 ("SPL: Do not enable SPL_SYS_MALLOC_SIMPLE without SPL_FRAMEWORK by default")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'Kconfig')
-rw-r--r-- | Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -298,7 +298,7 @@ config SYS_MALLOC_LEN config SPL_SYS_MALLOC_F_LEN hex "Size of malloc() pool in SPL" depends on SYS_MALLOC_F && SPL - default 0 if !SPL_FRAMEWORK + default 0x0 if !SPL_FRAMEWORK default 0x2800 if RCAR_GEN3 default 0x2000 if IMX8MQ default SYS_MALLOC_F_LEN |