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/test | |
| 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/test')
| -rw-r--r-- | tools/binman/test/289_template_section.dts | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/tools/binman/test/289_template_section.dts b/tools/binman/test/289_template_section.dts new file mode 100644 index 00000000000..8a744a0cf68 --- /dev/null +++ b/tools/binman/test/289_template_section.dts @@ -0,0 +1,52 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + u-boot-img { + }; + + common_part: template { + u-boot { + }; + + intel-vga { + filename = "vga.bin"; + }; + }; + + first { + type = "section"; + insert-template = <&common_part>; + + u-boot-dtb { + }; + }; + + section { + second { + type = "section"; + insert-template = <&common_part>; + + u-boot-dtb { + }; + + intel-vga { + filename = "vga2.bin"; + }; + }; + }; + + second { + type = "section"; + insert-template = <&common_part>; + + u-boot-dtb { + }; + }; + }; +}; |
