summaryrefslogtreecommitdiff
path: root/tools/binman/etype/blob_dtb.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-07-20 21:23:32 +0300
committerSimon Glass <sjg@chromium.org>2019-07-29 18:38:05 +0300
commitfb5e8b163e2332297cb2c0821bc2e24ef4818816 (patch)
tree24c7805ed0266536c0b44a346cb3905420556f0a /tools/binman/etype/blob_dtb.py
parent4bdd30055ca3a9096f462177758b97e55c15f1e7 (diff)
downloadu-boot-fb5e8b163e2332297cb2c0821bc2e24ef4818816.tar.xz
binman: Adjust state.fdt_files to be keyed by entry type
It makes more sense to use entry type as the key for this dictionary, since the filename can in principle be anything. Make this change and also rename fdt_files and add a comment to explain it better. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/etype/blob_dtb.py')
-rw-r--r--tools/binman/etype/blob_dtb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/binman/etype/blob_dtb.py b/tools/binman/etype/blob_dtb.py
index b9ccf9a954..a3b548eef2 100644
--- a/tools/binman/etype/blob_dtb.py
+++ b/tools/binman/etype/blob_dtb.py
@@ -23,12 +23,12 @@ class Entry_blob_dtb(Entry_blob):
def ObtainContents(self):
"""Get the device-tree from the list held by the 'state' module"""
self._filename = self.GetDefaultFilename()
- self._pathname, _ = state.GetFdtContents(self._filename)
+ self._pathname, _ = state.GetFdtContents(self.GetFdtEtype())
return Entry_blob.ReadBlobContents(self)
def ProcessContents(self):
"""Re-read the DTB contents so that we get any calculated properties"""
- _, indata = state.GetFdtContents(self._filename)
+ _, indata = state.GetFdtContents(self.GetFdtEtype())
data = self.CompressData(indata)
return self.ProcessContentsUpdate(data)