]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: Avoid setting the image_pos attribute directly
authorSimon Glass <sjg@chromium.org>
Mon, 26 Aug 2024 19:11:33 +0000 (13:11 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 26 Sep 2024 10:40:30 +0000 (12:40 +0200)
Two places set this attribute directly. Update them to use the function
provided.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/etype/atf_fip.py
tools/binman/etype/cbfs.py

index 3da0dfcfc1268b37049447dd8e271f27f23825bc..636e073afc84b37d64934e6dd03945e9d515483a 100644 (file)
@@ -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:
index 575aa624f6cf0b325c667eadf3c7e945d92a248e..124fa1e4ffc7d0374b27c09d32ead8429567d304 100644 (file)
@@ -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