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
[nRF] The nRF boards should not enable networking stacks #5454
Comments
Kconfiglib was recently merged and it enabled warnings when configs were redundant, previously these warnings defaulted to being suppressed. Building the Bluetooth beacon sample for nrf52_pca10040 now shows the warning:
We are redundantly setting this config because both the sample and the board is enabling BT. So fixing this issue would also fix the warning. |
A quick note that this doesn't have to be an "issue" which needs to be fixed. It may be that such values should be logically unified, and no warning should be produced. |
At the moment, Kconfiglib will always warn if a value is set more than once, even if the old and new values match. This is just to flag redundant entries. I could work something out if it isn't desired. |
I agree, not all warnings of this kind are "issues", but in this particular case IMHO it is. |
isnt CONFIG_BT here for the controller and radio which is considered a HW component, if you apply this rule globally, then we also should not be enabling UART and GPIO and and... |
I can't speak to the original intention. The radio is a HW component. I am OK with board's declaring that CONFIG_HAS_BT_RADIO or something similiair if needed. I have not looked into UART or GPIO. But there might be some exceptions to the rule when |
Another example of this in the wild: SebastianBoe/mcuboot@f4d0e1a |
Instead of enabling Bluetooth by default on nRF5x boards, only enable the controller if Bluetooth has been enabled by the applicaiton. Fixes zephyrproject-rtos#5454 Fixes zephyrproject-rtos#12215 Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
It is IMHO undesired behaviour that nrf52840_pca10056_defconfig and friends are enabling SW components.
Especially big SW components like BT.
HW Kconfig should be describing the available HW, not making assumptions about what SW is going to be used.
Networking stacks should be pulled in directly or indirectly because they are needed by applications.
The text was updated successfully, but these errors were encountered: