[PATCH v2 18/28] binman: Set section contents in GetData()

Simon Glass sjg at chromium.org
Fri Oct 30 04:33:52 CET 2020


Section contents is not set up when ObtainContents() is called, since
packing often changes the layout of the contents. Ensure that the contents
are correctly recorded by making this function regenerate the section. It
is normally only called by the parent section (when packing) or by the
top-level image code, when writing out the image. So the performance
impact is fairly small.

Now that sections have their contents in their 'data' property, update
testSkipAtStartSectionPad() to check it.

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

Changes in v2:
- Update testSkipAtStartSectionPad() to check section.data

 tools/binman/entry.py         |  6 ++++++
 tools/binman/etype/section.py | 14 +++++++++++++-
 tools/binman/ftest.py         |  4 +++-
 3 files changed, 22 insertions(+), 2 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list