binman: Allow overriding BuildSectionData()
authorSimon Glass <sjg@chromium.org>
Tue, 23 Nov 2021 18:03:47 +0000 (11:03 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 2 Dec 2021 16:16:30 +0000 (09:16 -0700)
commitd34bcdd054d4c9ccbbbc49a267168e5ad1bc0e78
tree55a2ae6e63fa6bcb62a52a9d2808d3848d6ea1e6
parentb6caf0ebcabd20499f3171e12bcbee01a0b3d724
binman: Allow overriding BuildSectionData()

This method is currently marked private. However it is useful to be able
to subclass it, since much of the entry_Section code can be reused. Rename
it.

Also document one confusing part of this code, so people can understand
how to add a test for this case.

Fix up a few pylint warnings to avoid regressing the score.

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