summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-08-26 13:11:35 -0600
committerSimon Glass <sjg@chromium.org>2024-09-26 12:40:30 +0200
commita1fe67a58c6ef90edc08906b4f785e0f6ff45c0e (patch)
treebd3894170df379e606d7841ad87d0b4c5f1bec76
parent52983ff54b3eca3485dcd54060bdb65423dac7ac (diff)
binman: fit: Avoid assuming that a FIT member is a section
Use the more generic variable name 'entry' to avoid confusion. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--tools/binman/etype/fit.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py
index 51c82c55e4a..3adc4a959e8 100644
--- a/tools/binman/etype/fit.py
+++ b/tools/binman/etype/fit.py
@@ -904,7 +904,7 @@ class Entry_fit(Entry_section):
fdt = Fdt.FromData(self.GetData())
fdt.Scan()
- for image_name, section in self._entries.items():
+ for image_name, entry in self._entries.items():
path = f"/images/{image_name}"
node = fdt.GetNode(path)
@@ -936,8 +936,8 @@ class Entry_fit(Entry_section):
size = None
self.Raise(f'{path}: missing data properties')
- section.SetOffsetSize(offset, size)
- section.SetImagePos(self.image_pos)
+ entry.SetOffsetSize(offset, size)
+ entry.SetImagePos(image_pos + self.offset)
def AddBintools(self, btools):
super().AddBintools(btools)