-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kconfig: Add dt_compat_any_not_has_prop function #82806
kconfig: Add dt_compat_any_not_has_prop function #82806
Conversation
Add preprocessor function that returns 'y' if any enabled node with compat does NOT have a certain property. This is different from using dt_compat_any_has_prop to check that they ALL don't have the property. Signed-off-by: Declan Snyder <[email protected]>
I find |
another option I was considering is to use the dt_compat_any_has_prop function and add a fourth boolean parameter to "invert" the logic? thoughts? |
I'd prefer separate functions instead of breaking the existing API. |
How would that break the existing API? We have done something like this multiple times in the past with these kconfig functions by adding another optional parameter |
An optional parameter is something else. You didn't say "optional" in your original comment. |
Add preprocessor function that returns 'y' if any enabled node with compat does NOT have a certain property. This is different from using dt_compat_any_has_prop to check that they ALL don't have the property.