]> git.sur5r.net Git - u-boot/blobdiff - tools/binman/etype/section.py
binman: Add support for outputing a map file
[u-boot] / tools / binman / etype / section.py
index 4e2f686eea88099a062194adb30fd2309e90e453..139fcad51af9f30efe413a9fb005447c0053b94b 100644 (file)
@@ -48,3 +48,12 @@ class Entry_section(Entry):
 
     def CheckPosition(self):
         self._section.CheckEntries()
+
+    def WriteMap(self, fd, indent):
+        """Write a map of the section to a .map file
+
+        Args:
+            fd: File to write the map to
+        """
+        super(Entry_section, self).WriteMap(fd, indent)
+        self._section.WriteMap(fd, indent + 1)