diff options
author | Simon Glass <sjg@chromium.org> | 2020-10-26 17:40:18 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-10-29 14:42:59 -0600 |
commit | 6ddd61131f3206c5e385dc7e763aea0dc5caa24c (patch) | |
tree | da1d71e3f8415a793bafccc5ee1cb04c39f4e920 /tools/binman | |
parent | a9fad07d4b862b4b5d52e04950a374371936f7eb (diff) | |
download | u-boot-6ddd61131f3206c5e385dc7e763aea0dc5caa24c.zip u-boot-6ddd61131f3206c5e385dc7e763aea0dc5caa24c.tar.gz u-boot-6ddd61131f3206c5e385dc7e763aea0dc5caa24c.tar.bz2 |
binman: Drop Entry.CheckOffset()
This function just calls CheckEntries() in the only non-trivial
implementation. Drop it and use CheckEntries() directly.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman')
-rw-r--r-- | tools/binman/entry.py | 2 | ||||
-rw-r--r-- | tools/binman/etype/section.py | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py index 8fa1dce..8946d2b 100644 --- a/tools/binman/entry.py +++ b/tools/binman/entry.py @@ -520,7 +520,7 @@ class Entry(object): """ pass - def CheckOffset(self): + def CheckEntries(self): """Check that the entry offsets are correct This is used for entries which have extra offset requirements (other diff --git a/tools/binman/etype/section.py b/tools/binman/etype/section.py index 2812989..fb4bf64 100644 --- a/tools/binman/etype/section.py +++ b/tools/binman/etype/section.py @@ -296,7 +296,7 @@ class Entry_section(Entry): offset = 0 prev_name = 'None' for entry in self._entries.values(): - entry.CheckOffset() + entry.CheckEntries() if (entry.offset < self._skip_at_start or entry.offset + entry.size > self._skip_at_start + self.size): @@ -337,9 +337,6 @@ class Entry_section(Entry): sizes_ok = False return sizes_ok and sizes_ok_base - def CheckOffset(self): - self.CheckEntries() - def WriteMap(self, fd, indent): """Write a map of the section to a .map file |