[U-Boot] [PATCH v2 15/31] binman: Allow entries to expand after packing

sjg at google.com sjg at google.com
Thu Jul 18 01:58:47 UTC 2019


Add support for detecting entries that change size after they have already
been packed, and re-running packing when it happens.

This removes the limitation that entry size cannot change after
PackEntries() is called.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v2:
- Avoid dual assignment in ResetForPack()
- Show a message when a section's size changes
- Use 3 packing passes instead of two, and add a comment
- Use bytearray for Python 3

 tools/binman/README                           |  3 +-
 tools/binman/bsection.py                      | 12 +++++
 tools/binman/control.py                       | 51 +++++++++++++------
 tools/binman/entry.py                         | 21 +++++++-
 tools/binman/etype/_testing.py                | 11 +++-
 tools/binman/etype/section.py                 |  5 ++
 tools/binman/etype/u_boot_with_ucode_ptr.py   |  2 +-
 tools/binman/ftest.py                         | 33 ++++++++++--
 tools/binman/image.py                         |  8 +++
 tools/binman/test/121_entry_expand.dts        | 20 ++++++++
 tools/binman/test/122_entry_expand_twice.dts  | 21 ++++++++
 .../binman/test/123_entry_expand_section.dts  | 22 ++++++++
 12 files changed, 184 insertions(+), 25 deletions(-)
 create mode 100644 tools/binman/test/121_entry_expand.dts
 create mode 100644 tools/binman/test/122_entry_expand_twice.dts
 create mode 100644 tools/binman/test/123_entry_expand_section.dts

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list