-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
samples: boards: nrf: nrfx: Fix (D)PPI dependency #78181
samples: boards: nrf: nrfx: Fix (D)PPI dependency #78181
Conversation
samples/boards/nrf/nrfx/Kconfig
Outdated
@@ -2,10 +2,10 @@ | |||
# SPDX-License-Identifier: Apache-2.0 | |||
|
|||
config NRFX_DPPI | |||
default $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_DPPIC)) | |||
default HAS_HW_NRF_DPPIC |
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.
The actual problem here is that the DT_COMPAT_NORDIC_NRF_DPPIC
symbol is not defined yet, since "Kconfig.zephyr" is sourced at the end of this file, and in my opinion this should be corrected by moving the source
instruction.
HAS_HW_NRF_DPPIC
evaluates to $(dt_compat_enabled,...)
so it's not entirely correct here - the thing is that the nrfx_dppi driver is to be enabled when DPPI is available on a given SoC, not only when the corresponding node is enabled in devicetree (it is always enabled now, so currently the effect is the same). It's just a detail, but I think it can be misleading.
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.
move source Kconfig.zephyr
to the top.
Move Kconfig.zephyr above local kconfigs. Signed-off-by: Krzysztof Chruściński <[email protected]>
1b3c01b
b609541
to
1b3c01b
Compare
This change was merged as part of #78179. |
Fix dependency which was not correctly working as (D)PPI was enabled by UART and not by this setting. When other modules were not enabling (D)PPI it was not enabled and compilation was failing.