]> git.ipfire.org Git - thirdparty/u-boot.git/commit - Kconfig
spl: Create proper symbols for enabling the malloc() pool
authorSimon Glass <sjg@chromium.org>
Tue, 26 Sep 2023 14:14:24 +0000 (08:14 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 6 Oct 2023 18:38:12 +0000 (14:38 -0400)
commitfd8497dae548ee2abee8ea4607707c1ff4cf7c43
tree6da10d382e38256e2ee8f479f9fe316aef328196
parent77b9b187e99776996ff67b7dbdcb313d3790fa7b
spl: Create proper symbols for enabling the malloc() pool

For U-Boot proper we have CONFIG_SYS_MALLOC_F which indicates that a
malloc() pool is available before relocation.

For SPL we only have CONFIG_SPL_SYS_MALLOC_F_LEN which indicates the
size of the pool.

In various places we use CONFIG_SPL_SYS_MALLOC_F_LEN == 0 to indicate
that there is no pool.

This differing approach is confusing. Add a new CONFIG_SPL_SYS_MALLOC_F
symbol for SPL (and similarly for TPL and VPL). Tidy up the Kconfig
help for clarity.

For now these symbols are not used. That is cleaned up in the following
patches.

Signed-off-by: Simon Glass <sjg@chromium.org>
Kconfig