mirror of
https://xff.cz/git/u-boot/
synced 2025-09-20 18:12:11 +02:00
binman: Add special subnodes to the nodes generated by split-elf
Special nodes, hash and signature, is not being added to the nodes generated for each segment in split-elf operation. Copy the subnode logic used in _gen_fdt_nodes to _gen_split_elf to ensure special nodes are added to the generated nodes. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Simon Glass
parent
5ad03fc77d
commit
00b3d53f15
@@ -5439,6 +5439,10 @@ fdt fdtmap Extract the devicetree blob from the fdtmap
|
||||
fdt_util.fdt32_to_cpu(atf1.props['load'].value))
|
||||
self.assertEqual(data, atf1.props['data'].bytes)
|
||||
|
||||
hash_node = atf1.FindNode('hash')
|
||||
self.assertIsNotNone(hash_node)
|
||||
self.assertEqual({'algo', 'value'}, hash_node.props.keys())
|
||||
|
||||
atf2 = dtb.GetNode('/images/atf-2')
|
||||
self.assertEqual(base_keys, atf2.props.keys())
|
||||
_, start, data = segments[1]
|
||||
@@ -5446,6 +5450,14 @@ fdt fdtmap Extract the devicetree blob from the fdtmap
|
||||
fdt_util.fdt32_to_cpu(atf2.props['load'].value))
|
||||
self.assertEqual(data, atf2.props['data'].bytes)
|
||||
|
||||
hash_node = atf2.FindNode('hash')
|
||||
self.assertIsNotNone(hash_node)
|
||||
self.assertEqual({'algo', 'value'}, hash_node.props.keys())
|
||||
|
||||
hash_node = dtb.GetNode('/images/tee-1/hash-1')
|
||||
self.assertIsNotNone(hash_node)
|
||||
self.assertEqual({'algo', 'value'}, hash_node.props.keys())
|
||||
|
||||
conf = dtb.GetNode('/configurations')
|
||||
self.assertEqual({'default'}, conf.props.keys())
|
||||
|
||||
|
Reference in New Issue
Block a user