]> git.dujemihanovic.xyz Git - u-boot.git/commit
binman: Support an assumed size for missing binaries
authorSimon Glass <sjg@chromium.org>
Sun, 23 Jun 2024 17:55:06 +0000 (11:55 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 3 Jul 2024 06:36:33 +0000 (07:36 +0100)
commit404936e5731ee366a513b0452e2306e799de59cb
tree58ee6284a3cb80084bb23dc47d189724633215e5
parentd552564e1a0a8096aa25812e5ca874967d34f09a
binman: Support an assumed size for missing binaries

Binman has a the useful feature of handling missing external blobs
gracefully, including allowing them to be missing, deciding whether the
resulting image is functional or not and faking blobs when this is
necessary for particular tools (e.g. mkimage).

This feature is widely used in CI. One drawback is that if U-Boot grows
too large to fit along with the required blobs, then this is not
discovered until someone does a 'real' build which includes the blobs.

Add a 'assume-size' property to entries to allow Binman to reserve a
given size for missing external blobs.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/binman.rst
tools/binman/entry.py
tools/binman/etype/blob.py
tools/binman/ftest.py
tools/binman/test/326_assume_size.dts [new file with mode: 0644]
tools/binman/test/327_assume_size_ok.dts [new file with mode: 0644]