binman: Allow updating entries that change size
authorSimon Glass <sjg@chromium.org>
Sat, 20 Jul 2019 18:23:56 +0000 (12:23 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 29 Jul 2019 15:38:06 +0000 (09:38 -0600)
commit51014aabc28e497eb98e0ba9c1fa0f19e871af1b
treebc48a7e5c0fdedc1a8e32b033cd9dc915b1fcb8d
parenteba1f0cc942947722f70029c033b915113cec1ba
binman: Allow updating entries that change size

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@chromium.org>
tools/binman/README
tools/binman/control.py
tools/binman/etype/fdtmap.py
tools/binman/ftest.py
tools/binman/image.py
tools/binman/state.py
tools/binman/test/139_replace_repack.dts [new file with mode: 0644]