diff options
author | Simon Glass <sjg@chromium.org> | 2024-08-26 13:11:36 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2024-09-26 12:40:30 +0200 |
commit | 6fac8e4883d59e78b7195bf75c174544a4ccfa2d (patch) | |
tree | de9a4de12731aa5cf4e202d5df722939af9c39a4 /tools | |
parent | a1fe67a58c6ef90edc08906b4f785e0f6ff45c0e (diff) |
binman: fit: Set the image_pos attributes only once
The section etype has its own implementation of SetImagePos(), most of
which is not useful since the code is included here. So call
Entry.SetImagePos() which has the only piece of this which we actually
want.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/binman/etype/fit.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py index 3adc4a959e8..96f4fdf3333 100644 --- a/tools/binman/etype/fit.py +++ b/tools/binman/etype/fit.py @@ -894,7 +894,10 @@ class Entry_fit(Entry_section): """ if self.build_done: return - super().SetImagePos(image_pos) + + # Skip the section processing, since we do that below. Just call the + # entry method + Entry.SetImagePos(self, image_pos) # If mkimage is missing we'll have empty data, # which will cause a FDT_ERR_BADMAGIC error |