Skip to content

Commit 88004b2

Browse files
committed
dt-rust: Fix "Root" node detection
The labels node should occur only at the root node in the Rust-converted devicetree. However, when translating the format of the yaml file to use explicit types, the rule for this node didn't end up in an array. It isn't clear why this doesn't generate an error, but making it an explicit array does fix the issue. Without this fix, the devicetree.rs that is generated has a duplicate copy of the labels module under every node. This fixes it to only occur at the top level. Fixes: #113 Signed-off-by: David Brown <[email protected]>
1 parent 029a8b1 commit 88004b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dt-rust.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666

6767
# Generate a pseudo node that matches all of the labels across the tree with their nodes.
6868
- name: labels
69-
rules: !Root
69+
rules:
70+
- !Root
7071
actions:
7172
- !Labels

0 commit comments

Comments
 (0)