]> git.dujemihanovic.xyz Git - u-boot.git/commit
binman: Move section-building code into a function
authorSimon Glass <sjg@chromium.org>
Mon, 26 Oct 2020 23:40:11 +0000 (17:40 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Oct 2020 20:42:59 +0000 (14:42 -0600)
commit17ea9f35e780d073820a770b8e65641761a31d1f
tree3c8cd49d42ab6a9101e90fa4e1c06d9c50040230
parent4eec34c91f84d6c3915b300f0688f9b055e04dda
binman: Move section-building code into a function

Create a new _BuildSectionData() to hold the code that is now in
GetData(), so that it is clearly separated from entry.GetData() base
function.

Separate out the 'pad-before' processing to make this easier to
understand.

Unfortunately this breaks the testDual test. Rather than squash several
patches into an un-reviewable glob, disable the test for now.

This also affects testSkipAtStartSectionPad(), although it still not
quite what it should be. Update that temporarily for now.

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