]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: Take account of skip-at-start with image-header
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:56:22 +0000 (08:56 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:44 +0000 (13:57 +0800)
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>
tools/binman/etype/image_header.py

index 4b69eda1a22bbf8c9d622bcfafc49b1d9c8581de..b9327dd799b7513cd914e2d50b06127ab7b23aa2 100644 (file)
@@ -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):