diff options
author | Simon Glass <sjg@chromium.org> | 2022-03-05 20:19:07 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-03-18 19:24:25 -0600 |
commit | d32169c0fd66fcd0b8a8572b4d7dff3fb3a87599 (patch) | |
tree | 8fdedb63448829fa932f1b575f0dec68706b7f85 /tools/binman | |
parent | b55c11c96ec8789cd843f7c79c90b05ae9e0fadf (diff) | |
download | u-boot-d32169c0fd66fcd0b8a8572b4d7dff3fb3a87599.zip u-boot-d32169c0fd66fcd0b8a8572b4d7dff3fb3a87599.tar.gz u-boot-d32169c0fd66fcd0b8a8572b4d7dff3fb3a87599.tar.bz2 |
binman: Update fit to move node reading into the ReadNode() method
This should not be done in the constructor. Move it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Suggested-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Reviewed-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Diffstat (limited to 'tools/binman')
-rw-r--r-- | tools/binman/etype/fit.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py index 9bc2588..4858ad4 100644 --- a/tools/binman/etype/fit.py +++ b/tools/binman/etype/fit.py @@ -168,12 +168,14 @@ class Entry_fit(Entry_section): super().__init__(section, etype, node) self._fit = None self._fit_props = {} + self._fdts = None + self.mkimage = None + def ReadNode(self): + super().ReadNode() for pname, prop in self._node.props.items(): if pname.startswith('fit,'): self._fit_props[pname] = prop - - self._fdts = None self._fit_list_prop = self._fit_props.get('fit,fdt-list') if self._fit_list_prop: fdts, = self.GetEntryArgsOrProps( @@ -182,10 +184,6 @@ class Entry_fit(Entry_section): self._fdts = fdts.split() self._fit_default_dt = self.GetEntryArgsOrProps([EntryArg('default-dt', str)])[0] - self.mkimage = None - - def ReadNode(self): - super().ReadNode() def _get_operation(self, subnode): """Get the operation referenced by a subnode |