]> git.baikalelectronics.ru Git - uboot.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)
commit299abb93632d512de7c90278bf4a0d1e47868f97
tree515149bb2d2472f0f3d131c11877a20b5ca16c2a
parent6cb4af48db31e0678643d92c27b0cd8a4a60c558
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