[U-Boot] [PATCH 42/53] binman: Update Entry.ReadEntry() to work through classes
sjg at google.com
sjg at google.com
Mon Jul 29 21:22:03 UTC 2019
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 <sjg at 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!
More information about the U-Boot
mailing list