summaryrefslogtreecommitdiffstats
path: root/tools/binman
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-11-02 12:55:44 -0700
committerSimon Glass <sjg@chromium.org>2020-11-05 09:11:31 -0700
commit08594d49860c335f39d4f7797cac766ac8b57c56 (patch)
tree0740407075d8770e02abe3edd17316fd6e815c26 /tools/binman
parent271a08380634f2def4a6b148187cce6693e878a5 (diff)
downloadu-boot-08594d49860c335f39d4f7797cac766ac8b57c56.tar.gz
u-boot-08594d49860c335f39d4f7797cac766ac8b57c56.tar.xz
u-boot-08594d49860c335f39d4f7797cac766ac8b57c56.zip
binman: Correct calculation for image-pos
A recent change removed the base offset from the calculation. This is used on coral to find the FSP-S binary. Fix it. Fixes: a9fad07d4b8 ("binman: Avoid reporting image-pos with compression") Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman')
-rw-r--r--tools/binman/entry.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py
index 68e694e7d1..2be0d8e053 100644
--- a/tools/binman/entry.py
+++ b/tools/binman/entry.py
@@ -245,7 +245,7 @@ class Entry(object):
state.SetInt(self._node, 'size', self.size)
base = self.section.GetRootSkipAtStart() if self.section else 0
if self.image_pos is not None:
- state.SetInt(self._node, 'image-pos', self.image_pos)
+ state.SetInt(self._node, 'image-pos', self.image_pos - base)
if self.GetImage().allow_repack:
if self.orig_offset is not None:
state.SetInt(self._node, 'orig-offset', self.orig_offset, True)