]> git.dujemihanovic.xyz Git - u-boot.git/commit
binman: Set section contents in GetData()
authorSimon Glass <sjg@chromium.org>
Mon, 26 Oct 2020 23:40:16 +0000 (17:40 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Oct 2020 20:42:59 +0000 (14:42 -0600)
commit63e7ba6c1820def06e7ba88ce357cb605285e70c
treee8a3e3bb89cf0ebc36299c683ce56fb52e6d722e
parent97c3e9a6faa4483a700b26988bc48c2f9efe8dd6
binman: Set section contents in GetData()

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