From: Simon Goldschmidt Date: Mon, 22 Apr 2019 22:29:19 +0200 Subject: [U-Boot] [PATCH] spl: add overall SPL size check In-Reply-To: <20190422201931.GR4664@bill-the-cat> References: <20190422194806.9227-1-simon.k.r.goldschmidt@gmail.com> <20190422201931.GR4664@bill-the-cat> Message-ID: <2098b84b-f354-b45b-a73b-9cd48b4db1f6@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 22.04.19 22:19, Tom Rini wrote: > 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 > > 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. I'm ok with that. > >> --- >> >> Kconfig | 8 -------- >> Makefile | 2 +- >> common/spl/Kconfig | 36 ++++++++++++++++++++++++++++++++++++ >> tools/Makefile | 2 ++ >> 4 files changed, 39 insertions(+), 9 deletions(-) > > The new tool code is missing :) d'oh! I've just sent v2 with the tool included. Regards, Simon