summaryrefslogtreecommitdiff
path: root/tools/binman/etype/intel_ifwi.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-07-20 21:23:45 +0300
committerSimon Glass <sjg@chromium.org>2019-07-29 18:38:05 +0300
commitc6bd6e235ac6d6a35e9ad8f3db49db7ba27f7650 (patch)
tree9b33ebb2abaac9fb99e6efa541f6555427dbd7fb /tools/binman/etype/intel_ifwi.py
parent1411ac8d162eaf97714b17848a2da7be1f01fa98 (diff)
downloadu-boot-c6bd6e235ac6d6a35e9ad8f3db49db7ba27f7650.tar.xz
binman: Adjust Entry to read the node in a separate call
At present the Entry constructor sets up the object and then immediately reads its device-tree node to obtain its properties. This breaks a convention that constructors should not do any processing. A consequence is that we must pass all arguments to the constructor and cannot have the node-reading proceed in a different way unless we pass flags to that constructor. We already have a 'test' flag in a few cases, and now need to control whether the 'orig_offset' and 'orig_size' properties are set or not. Adjust the code to require a separate call to ReadNode() after construction. The Image class remains as it was. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/etype/intel_ifwi.py')
-rw-r--r--tools/binman/etype/intel_ifwi.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/binman/etype/intel_ifwi.py b/tools/binman/etype/intel_ifwi.py
index 8c79b2dd29..9cbdf3698a 100644
--- a/tools/binman/etype/intel_ifwi.py
+++ b/tools/binman/etype/intel_ifwi.py
@@ -94,6 +94,7 @@ class Entry_intel_ifwi(Entry_blob):
"""Read the subnodes to find out what should go in this IFWI"""
for node in self._node.subnodes:
entry = Entry.Create(self.section, node)
+ entry.ReadNode()
entry._ifwi_replace = fdt_util.GetBool(node, 'replace')
entry._ifwi_subpart = fdt_util.GetString(node, 'ifwi-subpart')
entry._ifwi_entry_name = fdt_util.GetString(node, 'ifwi-entry')