]> git.baikalelectronics.ru Git - uboot.git/commit
spl: add overall SPL size check
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Fri, 24 May 2019 20:07:04 +0000 (22:07 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 7 Jun 2019 15:03:39 +0000 (11:03 -0400)
commitb22a6d720d1a7fae036901b5ee371611541b98d6
treefbc3cff0721a1be36cb343b841ad7374e33606fb
parent6177d5821bd915998e4bc938d60c7862def72bf5
spl: add overall SPL size check

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@gmail.com>
Kconfig
Makefile
common/spl/Kconfig
tools/Makefile
tools/spl_size_limit.c [new file with mode: 0644]