summaryrefslogtreecommitdiff
path: root/tools/binman/etype/fit.py
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2022-02-28 19:06:20 +0300
committerSimon Glass <sjg@chromium.org>2022-03-19 04:24:24 +0300
commitb210661c8661ac843127a01fd0100ffceffb81d7 (patch)
tree2dea1fc75da420029bacb4cad72d3758a9a39d15 /tools/binman/etype/fit.py
parent7aa288ef5ca45c38336f65d8ba2f62de9f984201 (diff)
downloadu-boot-b210661c8661ac843127a01fd0100ffceffb81d7.tar.xz
binman: Include also subnodes in generator nodes
This allows to prefill fdt and config nodes with hash and signature subnodes. It's just important to place the child nodes last so that hashes do not come before the data - would be disliked by mkimage. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/etype/fit.py')
-rw-r--r--tools/binman/etype/fit.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py
index 2d4c5f6545..0ae696f9c2 100644
--- a/tools/binman/etype/fit.py
+++ b/tools/binman/etype/fit.py
@@ -269,6 +269,10 @@ class Entry_fit(Entry_section):
# Add data for 'images' nodes (but not 'config')
if depth == 1 and in_images:
fsw.property('data', tools.read_file(fname))
+
+ for subnode in node.subnodes:
+ with fsw.add_node(subnode.name):
+ _add_node(node, depth + 1, subnode)
else:
if self._fdts is None:
if self._fit_list_prop: