diff options
author | Simon Glass <sjg@chromium.org> | 2018-09-14 04:57:27 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-09-29 11:49:35 -0600 |
commit | b4e1a38c294f56708d1a82717c850da359401d7e (patch) | |
tree | f14167edc19f79f44580fb27971b8c4bfc94f89e /tools/binman | |
parent | 83d73c2f7c471c1a7e5a9a2bf0de287491408b2d (diff) | |
download | u-boot-b4e1a38c294f56708d1a82717c850da359401d7e.tar.gz u-boot-b4e1a38c294f56708d1a82717c850da359401d7e.tar.xz u-boot-b4e1a38c294f56708d1a82717c850da359401d7e.zip |
binman: Allow zero-size sections
At present if there is only a zero-size entry in a section this is
reported as an error, e.g.:
Offset 0x0 (0) is outside the section starting at 0x0 (0)
Adjust the logic in CheckEntries() to avoid this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman')
-rw-r--r-- | tools/binman/bsection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binman/bsection.py b/tools/binman/bsection.py index 44adb82795..1c37d84e99 100644 --- a/tools/binman/bsection.py +++ b/tools/binman/bsection.py @@ -258,7 +258,7 @@ class Section(object): for entry in self._entries.values(): entry.CheckOffset() if (entry.offset < self._skip_at_start or - entry.offset >= self._skip_at_start + self._size): + entry.offset + entry.size > self._skip_at_start + self._size): entry.Raise("Offset %#x (%d) is outside the section starting " "at %#x (%d)" % (entry.offset, entry.offset, self._skip_at_start, |