1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-02 01:02:19 +02:00

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>
This commit is contained in:
Simon Glass
2019-07-20 12:23:58 -06:00
parent 79d3c58d12
commit 61ec04f9ed
5 changed files with 91 additions and 11 deletions

View File

@@ -333,7 +333,7 @@ def ProcessImage(image, update_fdt, write_map, get_contents=True,
break
image.ResetForPack()
if not sizes_ok:
image.Raise('Entries expanded after packing (tried %s passes)' %
image.Raise('Entries changed size after packing (tried %s passes)' %
passes)
image.WriteSymbols()