[U-Boot] [PATCH 36/53] binman: Support shrinking a entry after packing

sjg at google.com sjg at google.com
Mon Jul 29 21:22:12 UTC 2019


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 at chromium.org>
---

 tools/binman/control.py                |  2 +-
 tools/binman/entry.py                  | 28 +++++++++++++++++---------
 tools/binman/ftest.py                  | 25 ++++++++++++++++++++++-
 tools/binman/state.py                  | 27 +++++++++++++++++++++++++
 tools/binman/test/140_entry_shrink.dts | 20 ++++++++++++++++++
 5 files changed, 91 insertions(+), 11 deletions(-)
 create mode 100644 tools/binman/test/140_entry_shrink.dts

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list