]> git.dujemihanovic.xyz Git - u-boot.git/commit
binman: Update Entry.ReadEntry() to work through classes
authorSimon Glass <sjg@chromium.org>
Sat, 20 Jul 2019 18:24:04 +0000 (12:24 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 29 Jul 2019 15:38:06 +0000 (09:38 -0600)
commita9cd39ef751efdd05a3a5ccae13e28d8a993292d
treef40b538b4be83f3c0a8a8ad6b829c7a55ee40f7e
parent17a7421ff417f21d0e3e151c992d7188ded3c0d3
binman: Update Entry.ReadEntry() to work through classes

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@chromium.org>
tools/binman/entry.py
tools/binman/etype/blob.py
tools/binman/etype/cbfs.py
tools/binman/etype/section.py