]> git.baikalelectronics.ru Git - uboot.git/commit
binman: Allow control of which entries to read
authorSimon Glass <sjg@chromium.org>
Tue, 23 Nov 2021 18:03:48 +0000 (11:03 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 2 Dec 2021 16:16:30 +0000 (09:16 -0700)
commitf6a34f04c85a11f858502d3a2c057309fcaa95c5
tree52c07fa477f6b9a8ab52e752f6bd5e34b7f26157
parentb2b87ceb4ed17744aff34391ed5c803924ade04c
binman: Allow control of which entries to read

The ObtainContents() and GetEntryContents() methods in this file read
every single entry in the section. This is the common case.

However when one of the entries has had its data updated (e.g. with
'binman replace') we don't want to read it again from the file. Allow
the entry to be skipped, for this purpose. This is currently done in the
CBFS implementation, so adding it here will allow that to use more of
the entry_Section code.

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