binman: Add a function to obtain the image for an Entry
authorSimon Glass <sjg@chromium.org>
Sat, 20 Jul 2019 18:23:46 +0000 (12:23 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 29 Jul 2019 15:38:06 +0000 (09:38 -0600)
commitc5ad04b72169c40e3646ed5bba28832eed2c5d4f
tree73fcbfba65313e721c03cb2256492e22ec66508b
parentc6bd6e235ac6d6a35e9ad8f3db49db7ba27f7650
binman: Add a function to obtain the image for an Entry

At present we have an 'image' property in the entry for this purpose, but
this is not necessary and seems error-prone in the presence of
inheritance. Add a function instead. The Entry_section class overrides
this with a special version, since top-level sections are in fact images,
since Image inherits Entry_section.

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