diff options
author | Simon Glass <sjg@chromium.org> | 2023-07-18 07:24:07 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-07-20 14:10:58 -0600 |
commit | 696f2b73d6ccffe23d5c295308817ca8d2bebc92 (patch) | |
tree | efb447230f2ab9405a846b6c6d898b7328da06cb /tools/binman/ftest.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 <sjg@chromium.org>
Diffstat (limited to 'tools/binman/ftest.py')
-rw-r--r-- | tools/binman/ftest.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index dfca631662..e96223cbd8 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -6812,6 +6812,14 @@ fdt fdtmap Extract the devicetree blob from the fdtmap tools.write_file(fname, fit_data) out = tools.run('dumpimage', '-l', fname) + def testTemplateSection(self): + """Test using a template in a section (not at top level)""" + TestFunctional._MakeInputFile('vga2.bin', b'#' + VGA_DATA) + data = self._DoReadFile('289_template_section.dts') + first = U_BOOT_DATA + VGA_DATA + U_BOOT_DTB_DATA + second = U_BOOT_DATA + b'#' + VGA_DATA + U_BOOT_DTB_DATA + self.assertEqual(U_BOOT_IMG_DATA + first + second + first, data) + if __name__ == "__main__": unittest.main() |