[U-Boot] [PATCH] spl: add overall SPL size check
Tom Rini
trini at konsulko.com
Mon Apr 22 20:19:31 UTC 2019
On Mon, Apr 22, 2019 at 09:48:06PM +0200, Simon Goldschmidt 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>
OK, this relies on very small parts of:
https://patchwork.ozlabs.org/patch/1074741/ from Heinrich and I think
it's appropriate to grab his S-o-B line and squash those parts in.
Please speak up if either of you object.
> ---
>
> Kconfig | 8 --------
> Makefile | 2 +-
> common/spl/Kconfig | 36 ++++++++++++++++++++++++++++++++++++
> tools/Makefile | 2 ++
> 4 files changed, 39 insertions(+), 9 deletions(-)
The new tool code is missing :)
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190422/1a8f6e37/attachment.sig>
More information about the U-Boot
mailing list