binman: Support writing symbols into entries within an IFWI
authorSimon Glass <sjg@chromium.org>
Sat, 24 Aug 2019 13:23:11 +0000 (07:23 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Oct 2019 14:40:02 +0000 (08:40 -0600)
The Intel IFWI (Integrated Firmware Image) is effectively a section with
other entries inside it. Support writing symbol information into entries
within it.

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

index 17792defe9a0a377c6ffbd33b3d21d1ce022f7a7..36aadc210c46cc45bc87fb3fab74a3e61fae46a0 100644 (file)
@@ -118,3 +118,8 @@ class Entry_intel_ifwi(Entry_blob):
             entry._ifwi_subpart = fdt_util.GetString(node, 'ifwi-subpart')
             entry._ifwi_entry_name = fdt_util.GetString(node, 'ifwi-entry')
             self._ifwi_entries[entry._ifwi_subpart] = entry
+
+    def WriteSymbols(self, section):
+        """Write symbol values into binary files for access at run time"""
+        for entry in self._ifwi_entries.values():
+            entry.WriteSymbols(self)