We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 142012e commit 8379fecCopy full SHA for 8379fec
zephyr-build/src/devicetree/augment.rs
@@ -28,6 +28,12 @@ pub trait Augment {
28
/// The default implementation checks if this node matches and calls a generator if it does, or
29
/// does nothing if not.
30
fn augment(&self, node: &Node, tree: &DeviceTree) -> TokenStream {
31
+ // If there is a status field present, and it is not set to "okay", don't augment this node.
32
+ if let Some(status) = node.get_single_string("status") {
33
+ if status != "okay" {
34
+ return TokenStream::new();
35
+ }
36
37
if self.is_compatible(node) {
38
self.generate(node, tree)
39
} else {
0 commit comments