[PATCH 01/10] Makefile: Have binary_size_check report only first match of _image_binary_end
Tom Rini
trini at konsulko.com
Thu Jan 22 15:21:56 CET 2026
On Thu, Jan 22, 2026 at 10:07:56AM +0100, Marek Vasut wrote:
> On 1/15/26 11:19 PM, Tom Rini wrote:
> > If we have ASSERT macros that validate the position of
> > _image_binary_end, our awk expression will report a string that causes
> > the rest of our check to fail with garbage values. Have it exit after
> > the first match to fix this.
> >
> > Signed-off-by: Tom Rini <trini at konsulko.com>
> > ---
> > Makefile | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/Makefile b/Makefile
> > index 50737f938503..37cebd4f8edd 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -1583,7 +1583,7 @@ binary_size_check: u-boot-nodtb.bin FORCE
> > map_size=$(shell cat u-boot.map | \
> > awk ' \
> > /_image_copy_start/ { start = $$1 } \
> > - /_image_binary_end/ { end = $$1 } \
> > + /_image_binary_end/ { end = $$1;exit } \
> Can this same check also confirm that _image_binary_end or __bss_end is at 8
> byte aligned offset ? That would allow us to trap all the built-in DT
> alignment errors.
We should have that now via the linker scripts. Also note that this call
here isn't universal.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20260122/9e2f5851/attachment.sig>
More information about the U-Boot
mailing list