[PATCH v3 4/4] malloc: Enable SYS_MALLOC_RUNTIME_INIT by default in SPL

Simon Glass sjg at chromium.org
Mon Oct 2 03:16:49 CEST 2023


On Thu, 28 Sept 2023 at 08:45, Sean Anderson <sean.anderson at seco.com> wrote:
>
> 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. As this
> trades text size for BSS size, enable it by default only for boards with at
> least 16k of BSS.
>
> Signed-off-by: Sean Anderson <sean.anderson at seco.com>
> ---
>
> Changes in v3:
> - Don't enable SPL_SYS_MALLOC_RUNTIME_INIT if we are short on BSS
>
>  Kconfig | 11 +++++++++++
>  1 file changed, 11 insertions(+)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list