At present we simply extract the data directly from entries using the
image_pos information. This happens to work on current entry types, but
cannot work if the entry type encodes the data in some way. Update the
ReadData() method to provide the data by calling a new ReadChildData()
method in the parent. This allows the entry_Section class, or possibly
any other container class, to return the correct data in all cases.

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

 tools/binman/entry.py         |  7 ++-----
 tools/binman/etype/blob.py    | 12 ------------
 tools/binman/etype/cbfs.py    | 12 ++++++++++++
 tools/binman/etype/section.py | 32 ++++++++++++++++++++++++++++++++
 4 files changed, 46 insertions(+), 17 deletions(-)

Applied to u-boot-dm, thanks!
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to