[U-Boot] [PATCH 43/53] binman: Update Entry.WriteData() to handle special sections

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


At present this method assumes that the parent section does not need
to recalculate its position or adjust any metadata it may contain. But
when the entry changes size this may not be true. Also if the parent
section is more than just a container (e.g. it is a CBFS) then the
section may need to regenerate its output.

Add a new WriteChildData() method to sections and call this from the
WriteData() method, to handle this situation.

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

 tools/binman/entry.py         | 21 ++++++++++++++++++++-
 tools/binman/etype/cbfs.py    |  8 ++++++--
 tools/binman/etype/section.py |  3 +++
 3 files changed, 29 insertions(+), 3 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list