[PATCH 1/1] common: fix detection of SYS_MALLOC_F_LEN=0x0

Tom Rini trini at konsulko.com
Tue Aug 1 17:14:12 CEST 2023

On Tue, Aug 01, 2023 at 03:33:41PM +0200, Heinrich Schuchardt wrote:

> 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 at canonical.com>

Reviewed-by: Tom Rini <trini at konsulko.com>

And I see a number of other cases where a "hex" option has a default of
"0" and not "0x0" so I'll have a patch soon.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230801/1cabcb5d/attachment.sig>

More information about the U-Boot mailing list