[U-Boot] spl: add size check including devicetree
Tom Rini
trini at konsulko.com
Fri Mar 22 23:17:19 UTC 2019
On Fri, Mar 01, 2019 at 10:34:17PM +0100, Simon Goldschmidt wrote:
> Current linker based size checks do not account for the devicetree,
> as this is added after linker stage.
>
> This patch moves the logic behind U-Boot proper BOARD_SIZE_CHECK
> into a common function that is called for SPL, too.
>
> For SPL, CONFIG_SPL_MAX_SIZE is used to check u-boot-spl-dtb.bin.
>
> This is RFC for two reasons:
> - scripts/Kbuild.include might not be the perfect place for this
> new function but was the only place I found included by both
> /Makefile and /scripts/Makefile.spl
> - CONFIG_SPL_MAX_SIZE at least for some boards defines the size
> of the initially available SRAM. However, this check checks the
> SPL binary only. Initial SRAM must hold gd, heap and stack in
> addition to that.
>
> Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt at gmail.com>
Applied to u-boot/master, thanks!
--
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/20190322/c53596e0/attachment.sig>
More information about the U-Boot
mailing list