diff mbox series

[U-Boot,31/34] binman: Support writing symbols into entries within an IFWI

Message ID 20190824132315.53130-32-sjg@chromium.org
State Accepted
Commit ed9571d269e814975c0626f92e6f322343178edf
Delegated to: Simon Glass
Headers show
Series binman: Various improvements and tidy-ups | expand

Commit Message

Simon Glass Aug. 24, 2019, 1:23 p.m. UTC
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 | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Simon Glass Sept. 27, 2019, 12:38 a.m. UTC | #1
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 | 5 +++++
 1 file changed, 5 insertions(+)

Applied to u-boot-dm, thanks!
diff mbox series

Patch

diff --git a/tools/binman/etype/intel_ifwi.py b/tools/binman/etype/intel_ifwi.py
index 17792defe9..36aadc210c 100644
--- a/tools/binman/etype/intel_ifwi.py
+++ b/tools/binman/etype/intel_ifwi.py
@@ -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)