]> git.dujemihanovic.xyz Git - u-boot.git/commit
binman: Support shrinking a entry after packing
authorSimon Glass <sjg@chromium.org>
Sat, 20 Jul 2019 18:23:58 +0000 (12:23 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 29 Jul 2019 15:38:06 +0000 (09:38 -0600)
commit61ec04f9eda413664e5c11a6099c89a44b73b5b9
tree5234f74a0da4d87cd229b08ce61dd12d2c18822a
parent79d3c58d1268786ce40c6c0920ed2a447247fdc4
binman: Support shrinking a entry after packing

Sometimes an entry may shrink after it has already been packed. In that
case we must repack the items. Of course it is always possible to just
leave the entry at its original size and waste space at the end. This is
what binman does by default, since there is the possibility of the entry
changing size every time binman calculates its contents, thus causing a
loop.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/control.py
tools/binman/entry.py
tools/binman/ftest.py
tools/binman/state.py
tools/binman/test/140_entry_shrink.dts [new file with mode: 0644]