]> git.dujemihanovic.xyz Git - u-boot.git/commit
binman: Refactor _BuildSectionData()
authorSimon Glass <sjg@chromium.org>
Mon, 26 Oct 2020 23:40:12 +0000 (17:40 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Oct 2020 20:42:59 +0000 (14:42 -0600)
commit4a655c9bd7d0e58206ed4417e8da31ad5da4926b
treeba3e20be270d36107022a20bf7876d3af989e9c0
parent17ea9f35e780d073820a770b8e65641761a31d1f
binman: Refactor _BuildSectionData()

At present this function does the padding needed around an entry. It is
easier to understand what is going on if we have a function that returns
the contents of an entry, with padding included.

Refactor the code accordingly, adding a new GetPaddedData() method.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/etype/section.py
tools/binman/image.py