binman: Update IFWI entry to read entries outside constructor
authorSimon Glass <sjg@chromium.org>
Sat, 24 Aug 2019 13:23:09 +0000 (07:23 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Oct 2019 14:40:02 +0000 (08:40 -0600)
At present this class reads its entries in the constructor. This is not
how things should be done now. Update it.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/etype/intel_ifwi.py

index e4da3e498a4bca2696287002427d64461a879a09..ef2b35706fc790e5148f674e2c84942a6e0e8a59 100644 (file)
@@ -48,7 +48,10 @@ class Entry_intel_ifwi(Entry_blob):
         Entry_blob.__init__(self, section, etype, node)
         self._convert_fit = fdt_util.GetBool(self._node, 'convert-fit')
         self._ifwi_entries = OrderedDict()
+
+    def ReadNode(self):
         self._ReadSubnodes()
+        Entry_blob.ReadNode(self)
 
     def ObtainContents(self):
         """Get the contects for the IFWI