]> git.baikalelectronics.ru Git - uboot.git/commit
binman: Update Entry.WriteData() to handle special sections
authorSimon Glass <sjg@chromium.org>
Sat, 20 Jul 2019 18:24:05 +0000 (12:24 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 29 Jul 2019 15:38:06 +0000 (09:38 -0600)
commit2af88727dacdd52daedea097b4f4dc55774babb0
treef1664e112079402eb0296f8e24803fca0dafaa5a
parentc78f42c5f6f0e4b50c66750a68fa0429de50f0c4
binman: Update Entry.WriteData() to handle special sections

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@chromium.org>
tools/binman/entry.py
tools/binman/etype/cbfs.py
tools/binman/etype/section.py