diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2022-02-28 17:06:20 +0100 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-03-18 19:24:24 -0600 |
commit | b210661c8661ac843127a01fd0100ffceffb81d7 (patch) | |
tree | 2dea1fc75da420029bacb4cad72d3758a9a39d15 /tools/binman/ftest.py | |
parent | 7aa288ef5ca45c38336f65d8ba2f62de9f984201 (diff) |
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/ftest.py')
-rw-r--r-- | tools/binman/ftest.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index 8d41ab67c50..92d9dc0df92 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -4029,6 +4029,7 @@ class TestFunctional(unittest.TestCase): self.assertEqual(expected_data, fnode.props['data'].bytes) self.assertEqual('fdt-test-fdt%d.dtb' % seq, fnode.props['description'].value) + self.assertEqual(fnode.subnodes[0].name, 'hash') def _CheckConfig(seq, expected_data): """Check the configuration nodes |