[U-Boot] [PATCH v3] spl: add overall SPL size check

Masahiro Yamada yamada.masahiro at socionext.com
Mon May 27 16:35:52 UTC 2019


On Sat, May 25, 2019 at 5:07 AM Simon Goldschmidt
<simon.k.r.goldschmidt at gmail.com> wrote:
>
> This adds a size check for SPL that can dynamically check generated
> SPL binaries (including devicetree) for a size limit that ensures
> this image plus global data, heap and stack fit in initial SRAM.
>
> Since some of these sizes are not available to make, a new host tool
> 'spl_size_limit' is added that dumps the resulting maximum size for
> an SPL binary to stdout. This tool is used in toplevel Makefile to
> implement the size check on SPL binaries.
>
> Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt at gmail.com>
> ---

Some architectures have SPL size checks.
CONFIG_SPL_MAX_FOOTPRINT
CONFIG_SPL_MAX_SIZE
CONFIG_SPL_BSS_MAX_SIZE

Will they be replaced by this new mechanism?


-- 
Best Regards
Masahiro Yamada


More information about the U-Boot mailing list