diff options
author | Simon Glass <sjg@chromium.org> | 2020-10-27 02:40:17 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-10-29 23:42:59 +0300 |
commit | a9fad07d4b862b4b5d52e04950a374371936f7eb (patch) | |
tree | 515149bb2d2472f0f3d131c11877a20b5ca16c2a /tools/binman/control.py | |
parent | 63e7ba6c1820def06e7ba88ce357cb605285e70c (diff) | |
download | u-boot-a9fad07d4b862b4b5d52e04950a374371936f7eb.tar.xz |
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>
Diffstat (limited to 'tools/binman/control.py')
-rw-r--r-- | tools/binman/control.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py index ee5771e729..26f1cf462e 100644 --- a/tools/binman/control.py +++ b/tools/binman/control.py @@ -462,7 +462,7 @@ def PrepareImagesAndDtbs(dtb_fname, select_images, update_fdt): for image in images.values(): image.ExpandEntries() if update_fdt: - image.AddMissingProperties() + image.AddMissingProperties(True) image.ProcessFdt(dtb) for dtb_item in state.GetAllFdts(): |