mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 00:20:44 +09:00
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>
This commit is contained in:
parent
83d73c2f7c
commit
b4e1a38c29
@ -258,7 +258,7 @@ class Section(object):
|
|||||||
for entry in self._entries.values():
|
for entry in self._entries.values():
|
||||||
entry.CheckOffset()
|
entry.CheckOffset()
|
||||||
if (entry.offset < self._skip_at_start or
|
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 "
|
entry.Raise("Offset %#x (%d) is outside the section starting "
|
||||||
"at %#x (%d)" %
|
"at %#x (%d)" %
|
||||||
(entry.offset, entry.offset, self._skip_at_start,
|
(entry.offset, entry.offset, self._skip_at_start,
|
||||||
|
Loading…
Reference in New Issue
Block a user