summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-08-26 13:11:33 -0600
committerSimon Glass <sjg@chromium.org>2024-09-26 12:40:30 +0200
commit8498d550c59090f73ca4cc60c17a87dd2350f47e (patch)
tree67fcc4599d44f00811fd65132bdae8af9bdf4cc8
parentfb428a63c189a3934ff1ffc9d2d3b9e05988a59d (diff)
binman: Avoid setting the image_pos attribute directly
Two places set this attribute directly. Update them to use the function provided. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--tools/binman/etype/atf_fip.py2
-rw-r--r--tools/binman/etype/cbfs.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/binman/etype/atf_fip.py b/tools/binman/etype/atf_fip.py
index 3da0dfcfc12..636e073afc8 100644
--- a/tools/binman/etype/atf_fip.py
+++ b/tools/binman/etype/atf_fip.py
@@ -248,7 +248,7 @@ class Entry_atf_fip(Entry_section):
fent = entry._fip_entry
entry.size = fent.size
entry.offset = fent.offset
- entry.image_pos = self.image_pos + entry.offset
+ entry.SetImagePos(image_pos + self.offset)
def ReadChildData(self, child, decomp=True, alt_format=None):
if not self.reader:
diff --git a/tools/binman/etype/cbfs.py b/tools/binman/etype/cbfs.py
index 575aa624f6c..124fa1e4ffc 100644
--- a/tools/binman/etype/cbfs.py
+++ b/tools/binman/etype/cbfs.py
@@ -245,7 +245,7 @@ class Entry_cbfs(Entry):
cfile = entry._cbfs_file
entry.size = cfile.data_len
entry.offset = cfile.calced_cbfs_offset
- entry.image_pos = self.image_pos + entry.offset
+ entry.SetImagePos(image_pos + self.offset)
if entry._cbfs_compress:
entry.uncomp_size = cfile.memlen