diff options
author | Simon Glass <sjg@chromium.org> | 2023-01-11 16:10:15 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-01-18 14:55:40 -0700 |
commit | 97fb8081ec0c8009ff5e70c054e8ece08e4465ed (patch) | |
tree | 121a11ac9718477dea939980b757af792503ce3f /tools/binman/etype/fit.py | |
parent | 62ef2f7bf3c442b6f717d2fbe823d579cf090dd8 (diff) |
binman: Add a function to check for special section nodes
This appears in two places in the code. Use a shared function instead.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/etype/fit.py')
-rw-r--r-- | tools/binman/etype/fit.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py index f0e3fd1a09..0e9d81b9e8 100644 --- a/tools/binman/etype/fit.py +++ b/tools/binman/etype/fit.py @@ -655,8 +655,7 @@ class Entry_fit(Entry_section): for subnode in node.subnodes: subnode_path = f'{rel_path}/{subnode.name}' - if has_images and not (subnode.name.startswith('hash') or - subnode.name.startswith('signature')): + if has_images and not self.IsSpecialSubnode(subnode): # This subnode is a content node not meant to appear in # the FIT (e.g. "/images/kernel/u-boot"), so don't call # fsw.add_node() or _add_node() for it. |