From: Tom Rini Date: Thu, 11 Apr 2019 12:53:02 -0400 Subject: [U-Boot] spl: add size check including devicetree In-Reply-To: References: <20190301213417.1692-1-simon.k.r.goldschmidt@gmail.com> <20190322231719.GL18421@bill-the-cat> Message-ID: <20190411165302.GG4664@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de On Wed, Mar 27, 2019 at 03:47:21PM +0100, Simon Goldschmidt wrote: > Tom Rini schrieb am Sa., 23. M=C3=A4rz 2019, 00:17: >=20 > > 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 > > > > Applied to u-boot/master, thanks! > > >=20 > Are you sure about that? I don't see it on github, and this was an RFC > which probably needs a bit of cleanup... ... oops, this was in my to-send queue by accident still when I sent it. --=20 Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: