[PATCH v2 28/28] binman: Avoid calculated section data repeatedly

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


Refactor the implementation slightly so that section data is not
rebuilt when it is already available.

We still have GetData() set up to rebuild the section, since we don't
currently track when things change that might affect a section. For
example, if a blob is updated within a section, we must rebuild it.
Tracking that would be possible but is more complex, so it left for
another time.

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

(no changes since v1)

 tools/binman/etype/section.py | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list