]> git.dujemihanovic.xyz Git - u-boot.git/commit
binman: Avoid reporting image-pos with compression
authorSimon Glass <sjg@chromium.org>
Mon, 26 Oct 2020 23:40:17 +0000 (17:40 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Oct 2020 20:42:59 +0000 (14:42 -0600)
commita9fad07d4b862b4b5d52e04950a374371936f7eb
tree515149bb2d2472f0f3d131c11877a20b5ca16c2a
parent63e7ba6c1820def06e7ba88ce357cb605285e70c
binman: Avoid reporting image-pos with compression

When a section is compressed, all entries within it are grouped together
into a compressed block of data. This obscures the start of each
individual child entry.

Avoid reporting bogus 'image-pos' properties in this case, since it is
not possible to access the entry at the location provided. The entire
section must be decompressed first.

CBFS does not support compressing whole sections, only individual files,
so needs no special handling here.

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