[U-Boot] [PATCH 34/53] binman: Allow updating entries that change size

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


So far we don't allow entries to change size when repacking. But this is
not very useful since it is common for entries to change size after an
updated binary is built, etc.

Add support for this, respecting the original offset/size/alignment
constraints of the image layout. For this to work the original image
must have been created with the 'allow-repack' property.

This does not support entry types with sub-entries such as files and
CBFS, but it does support sections.

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

 tools/binman/README                      |  4 +-
 tools/binman/control.py                  | 29 ++++++++--
 tools/binman/etype/fdtmap.py             |  9 ++--
 tools/binman/ftest.py                    | 69 +++++++++++++++++++-----
 tools/binman/image.py                    |  3 +-
 tools/binman/state.py                    |  3 +-
 tools/binman/test/139_replace_repack.dts | 22 ++++++++
 7 files changed, 113 insertions(+), 26 deletions(-)
 create mode 100644 tools/binman/test/139_replace_repack.dts

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list