Some images do not have an image_pos value, for example an image which
is part of a compressed section and therefore cannot be accessed
directly.

Handle this case, returning None as the value.

Signed-off-by: Simon Glass <s...@chromium.org>
---

 tools/binman/etype/section.py          |  3 ++
 tools/binman/ftest.py                  | 49 +++++++++++++++++++-------
 tools/binman/test/338_symbols_comp.dts | 26 ++++++++++++++
 3 files changed, 65 insertions(+), 13 deletions(-)
 create mode 100644 tools/binman/test/338_symbols_comp.dts

Applied to u-boot-dm/next, thanks!

Reply via email to