summaryrefslogtreecommitdiff
path: root/tools/binman/control.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-07-18 07:24:05 -0600
committerSimon Glass <sjg@chromium.org>2023-07-20 14:10:58 -0600
commit35f72fb55a05ccf2a372566005f60c340924d1cc (patch)
tree94f681c47ea590da2a50575e97c223bce9273aa3 /tools/binman/control.py
parentf6abd5227a13e652c6a6c25173403ae19ac9e0f0 (diff)
binman: Support templating with multiple images
Allow a template to appear in the top level description when using multiple images. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/control.py')
-rw-r--r--tools/binman/control.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py
index e9c4a65a75a..f92c152285c 100644
--- a/tools/binman/control.py
+++ b/tools/binman/control.py
@@ -57,8 +57,9 @@ def _ReadImageDesc(binman_node, use_expanded):
images = OrderedDict()
if 'multiple-images' in binman_node.props:
for node in binman_node.subnodes:
- images[node.name] = Image(node.name, node,
- use_expanded=use_expanded)
+ if 'template' not in node.name:
+ images[node.name] = Image(node.name, node,
+ use_expanded=use_expanded)
else:
images['image'] = Image('image', binman_node, use_expanded=use_expanded)
return images