diff options
author | Simon Glass <sjg@chromium.org> | 2019-07-20 12:24:04 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-07-29 09:38:06 -0600 |
commit | a9cd39ef751efdd05a3a5ccae13e28d8a993292d (patch) | |
tree | f40b538b4be83f3c0a8a8ad6b829c7a55ee40f7e /tools/binman/etype/blob.py | |
parent | 17a7421ff417f21d0e3e151c992d7188ded3c0d3 (diff) |
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>
Diffstat (limited to 'tools/binman/etype/blob.py')
-rw-r--r-- | tools/binman/etype/blob.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tools/binman/etype/blob.py b/tools/binman/etype/blob.py index 00cad33718..d15d0789e5 100644 --- a/tools/binman/etype/blob.py +++ b/tools/binman/etype/blob.py @@ -67,15 +67,3 @@ class Entry_blob(Entry): def GetDefaultFilename(self): return self._filename - - def ReadData(self, decomp=True): - indata = Entry.ReadData(self, decomp) - if decomp: - data = tools.Decompress(indata, self.compress) - if self.uncomp_size: - tout.Info("%s: Decompressing data size %#x with algo '%s' to data size %#x" % - (self.GetPath(), len(indata), self.compress, - len(data))) - else: - data = indata - return data |