Skip to content

Commit afae20a

Browse files
committed
zephyr-build: Fix dt node names
Fix the DT node names in the generated `dt_cfgs` entries to match the names of the nodes. Need to apply `fix_id` in a few places to make sure non-identifier characters are converted to underscores. Signed-off-by: David Brown <[email protected]>
1 parent 30ea9fc commit afae20a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zephyr-build/src/devicetree/output.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ impl Node {
149149
writeln!(write, "cargo:rustc-cfg=dt=\"{}\"", child_name)?;
150150

151151
for prop in &child.properties {
152-
prop.output_path(write, &child_name)?;
152+
prop.output_path(write, &fix_id(&child_name))?;
153153
}
154154

155155
child.output_path_walk(write, Some(&child_name))?;

0 commit comments

Comments
 (0)