mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 12:46:14 +02:00
binman: Take account of skip-at-start with image-header
The image-header currently sets it offset assuming that skip-at-start is zero. This does not work on x86 where offsets end at 4GB. Add in this value so that the offset is correct. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
2d553c006d
commit
0b7ebee38e
@ -100,6 +100,7 @@ class Entry_image_header(Entry):
|
||||
offset = offset
|
||||
else:
|
||||
offset = image_size - IMAGE_HEADER_LEN
|
||||
offset += self.section.GetStartOffset()
|
||||
return Entry.Pack(self, offset)
|
||||
|
||||
def ProcessContents(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user