[PATCH v2 19/28] binman: Avoid reporting image-pos with compression
Simon Glass
sjg at chromium.org
Fri Oct 30 04:33:51 CET 2020
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 at chromium.org>
---
(no changes since v1)
tools/binman/control.py | 2 +-
tools/binman/entry.py | 18 ++++++++++++++----
tools/binman/etype/cbfs.py | 6 +++---
tools/binman/etype/section.py | 13 ++++++++-----
4 files changed, 26 insertions(+), 13 deletions(-)
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list