mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-07-05 05:42:51 +00: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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue