diff options
author | Simon Glass <sjg@chromium.org> | 2018-07-17 13:25:28 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-08-01 16:30:07 -0600 |
commit | 8122f3967f6eaab7134051d1d8c9b1bfc3babadb (patch) | |
tree | 370eb5697e7f8f2d0613c407d86c546eecc66280 /tools/binman/etype | |
parent | ea6922e3d6a1b6b73d7baef4998f8bef0fe332ad (diff) |
binman: Enhance the map and fdt-update output
At present the .map file produced for each image does not include the
overall image size. This is useful information.
Update the code to generate it in the .map file as well as the updated
FDT. Also fix a few comments while we are here.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/etype')
-rw-r--r-- | tools/binman/etype/section.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/binman/etype/section.py b/tools/binman/etype/section.py index 5a0b0b8c70..1d27301ae9 100644 --- a/tools/binman/etype/section.py +++ b/tools/binman/etype/section.py @@ -42,7 +42,8 @@ class Entry_section(Entry): def Pack(self, offset): """Pack all entries into the section""" self._section.PackEntries() - self.size = self._section.CheckSize() + self._section.SetOffset(offset) + self.size = self._section.GetSize() return super(Entry_section, self).Pack(offset) def WriteSymbols(self, section): @@ -66,5 +67,4 @@ class Entry_section(Entry): Args: fd: File to write the map to """ - super(Entry_section, self).WriteMap(fd, indent) - self._section.WriteMap(fd, indent + 1) + self._section.WriteMap(fd, indent) |