diff mbox series

[v2,06/28] binman: Remove references to 'image' in entry_Section

Message ID 20201026234026.1903778-7-sjg@chromium.org
State Accepted
Commit 72628cdf58ec2737637b41ec3dad4a30fe5090e0
Delegated to: Simon Glass
Headers show
Series binman: Support compression of sections | expand

Commit Message

Simon Glass Oct. 26, 2020, 11:40 p.m. UTC
While a section is the base class of Image, it is more correct to refer
to sections in most places in this file. Fix these comments.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

 tools/binman/etype/section.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Simon Glass Oct. 30, 2020, 3:34 a.m. UTC | #1
While a section is the base class of Image, it is more correct to refer
to sections in most places in this file. Fix these comments.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

 tools/binman/etype/section.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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

Patch

diff --git a/tools/binman/etype/section.py b/tools/binman/etype/section.py
index 515c97f9290..327750461eb 100644
--- a/tools/binman/etype/section.py
+++ b/tools/binman/etype/section.py
@@ -56,7 +56,7 @@  class Entry_section(Entry):
         self._end_4gb = False
 
     def ReadNode(self):
-        """Read properties from the image node"""
+        """Read properties from the section node"""
         super().ReadNode()
         self._pad_byte = fdt_util.GetInt(self._node, 'pad-byte', 0)
         self._sort = fdt_util.GetBool(self._node, 'sort-by-offset')
@@ -183,7 +183,7 @@  class Entry_section(Entry):
         return super().Pack(offset)
 
     def _PackEntries(self):
-        """Pack all entries into the image"""
+        """Pack all entries into the section"""
         offset = self._skip_at_start
         for entry in self._entries.values():
             offset = entry.Pack(offset)
@@ -209,7 +209,7 @@  class Entry_section(Entry):
             self._entries[entry._node.name] = entry
 
     def CheckEntries(self):
-        """Check that entries do not overlap or extend outside the image"""
+        """Check that entries do not overlap or extend outside the section"""
         if self._sort:
             self._SortEntries()
         self._ExpandEntries()
@@ -456,7 +456,7 @@  class Entry_section(Entry):
 
 
     def CheckSize(self):
-        """Check that the image contents does not exceed its size, etc."""
+        """Check that the section contents does not exceed its size, etc."""
         contents_size = 0
         for entry in self._entries.values():
             contents_size = max(contents_size, entry.offset + entry.size)