@@ -214,6 +214,10 @@ class Entry_fit(Entry_section):
if depth == 1 and in_images:
fsw.property('data',
tools.read_file(fname))
+
+ for subsubnode in subnode.subnodes:
+ with fsw.add_node(subsubnode.name):
+ _AddNode(subnode, depth + 1, subsubnode)
else:
if self._fdts is None:
if self._fit_list_prop:
@@ -3915,6 +3915,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
@@ -36,6 +36,9 @@
description = "fdt-NAME.dtb";
type = "flat_dt";
compression = "none";
+ hash {
+ algo = "sha256";
+ };
};
};