diff options
| author | Simon Glass <[email protected]> | 2023-07-18 07:24:07 -0600 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2023-07-20 14:10:58 -0600 |
| commit | 696f2b73d6ccffe23d5c295308817ca8d2bebc92 (patch) | |
| tree | efb447230f2ab9405a846b6c6d898b7328da06cb /tools/binman/control.py | |
| parent | db0e3f13b481cabd8f203a4ac742bb1afde6c67e (diff) | |
binman: Support templates at any level
Allow templates to be used inside a section, not just in the top-level
/binman node.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools/binman/control.py')
| -rw-r--r-- | tools/binman/control.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py index f92c152285c..25e66814837 100644 --- a/tools/binman/control.py +++ b/tools/binman/control.py @@ -493,8 +493,8 @@ def _ProcessTemplates(parent): Processing involves copying each subnode of the template node into the target node. - For now this is not done recursively, so templates must be at the top level - of the binman image. + This is done recursively, so templates can be at any level of the binman + image, e.g. inside a section. See 'Templates' in the Binman documnentation for details. """ @@ -502,6 +502,7 @@ def _ProcessTemplates(parent): tmpl = fdt_util.GetPhandleList(node, 'insert-template') if tmpl: node.copy_subnodes_from_phandles(tmpl) + _ProcessTemplates(node) def PrepareImagesAndDtbs(dtb_fname, select_images, update_fdt, use_expanded): """Prepare the images to be processed and select the device tree |
