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>
This commit is contained in:
Simon Glass
2024-08-26 13:11:35 -06:00
parent 52983ff54b
commit a1fe67a58c

View File

@@ -904,7 +904,7 @@ class Entry_fit(Entry_section):
fdt = Fdt.FromData(self.GetData()) fdt = Fdt.FromData(self.GetData())
fdt.Scan() fdt.Scan()
for image_name, section in self._entries.items(): for image_name, entry in self._entries.items():
path = f"/images/{image_name}" path = f"/images/{image_name}"
node = fdt.GetNode(path) node = fdt.GetNode(path)
@@ -936,8 +936,8 @@ class Entry_fit(Entry_section):
size = None size = None
self.Raise(f'{path}: missing data properties') self.Raise(f'{path}: missing data properties')
section.SetOffsetSize(offset, size) entry.SetOffsetSize(offset, size)
section.SetImagePos(self.image_pos) entry.SetImagePos(image_pos + self.offset)
def AddBintools(self, btools): def AddBintools(self, btools):
super().AddBintools(btools) super().AddBintools(btools)