-
Notifications
You must be signed in to change notification settings - Fork 8.3k
treewide: use auto-generated Kconfig compatible macro variables #100216
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
base: main
Are you sure you want to change the base?
treewide: use auto-generated Kconfig compatible macro variables #100216
Conversation
Replace some manually-defined DT_COMPAT_<> Kconfig macro variables with their automatically generated counterparts. In most cases, this is straightforward as the manually defined macro is named identically to the one generated by the build system. Signed-off-by: Mathieu Choplain <[email protected]>
7da38f0 to
7fa30cc
Compare
|
Fixed conflict from #100326 merge + use identical wording in |
|
|
#100215 caused regressions on STM32 platforms - DNM until investigated |
| DT_COMPAT_NORDIC_NRF_SPIM := nordic,nrf-spim | ||
|
|
||
| config NRFX_SPIM | ||
| bool "SPIM driver" | ||
| depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_SPIM)) | ||
|
|
||
| DT_COMPAT_NORDIC_NRF_SPIS := nordic,nrf-spis | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think you can remove them. They are not the same as generated DT_HAS_"compatiple"_ENABLED macros and actually used below as arguments in dt_has_compat().
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These macros are generated automatically by gen_driver_kconfig_dts.py - see <build dir>/Kconfig/Kconfig.dts.
This is a pattern already present in tree - see for example:
zephyr/drivers/audio/Kconfig.pcm1681
Lines 4 to 9 in 3b23c76
| config AUDIO_CODEC_PCM1681_I2C | |
| bool | |
| default y | |
| depends on $(dt_compat_on_bus,$(DT_COMPAT_TI_PCM1681),i2c) | |
| help | |
| I2C version of pcm1681xx driver |
|
Removing DNM: there are no |



Replace some manually-defined
DT_COMPAT_<>Kconfig macro variables with their automatically generated counterparts. In most cases, this is straightforward as the manually defined macro is named identically to the one generated by the build system.See also #100215