-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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: net: Update overlay-bt.conf in various samples #14674
Conversation
`CONFIG_NET_L2_BT` no longer forces required BT configuration, but depends on a user to set a valid configuration instead. Hence, we need to select a proper configuration in the overlay config file. Signed-off-by: Robert Lubos <[email protected]>
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.
LGTM
I wonder why that happened, looks rather verbose. IMHO, good enough defaults should have been used instead. |
@rlubos Thank you for submitting this fix. I hit this yesterday and had just begun debugging it. This looks good from a bugfix point of view. I was wondering 2 things (general question):
For 1.15 we should look at how/why and where we are setting up default configurations and possibly setup some kind of boads/common-overlays/* if we feel that's the right solution. Note, that I didn't even bring up the complication of SHIELD configurations .. we probably need to solve the base Zephyr issues first. |
Reading thru all this, I'd say we should have a good criteria what can go into board config/overlays and what shouldn't. E.g., the changes in this PR fine-tune BT config, and BT is in no way board-specific, so should not appear in board common configs. Of course, there's going to be (unfortunate) exceptions. (E.g. if one board doesn't/can't implement some generic features, and those need to be overridden just for it.) |
We should have a way to have "global" config overlays. For example in qemu_x86 it would be nice to use overlay-e1000.conf when compiling zephyr. This overlay is found only in couple of samples which is quite annoying actually. The same overlay-e1000.conf could be used in all the samples as it only contains generic options. |
One way to achieve that would be add specially defined options (in special Kconfig.* files) which would |
I did not meant that. In order to select that symbol you would need to have this set in your overlay file anyway.
but if the overlay-e1000.conf would not be found in local sample directory, a global directory would be searched and the overlay would be used if found there. |
Yep, that would sound good, though probably would take more changes to do. |
Created enhancement #14740 for the overlay issue. |
@pfalcon my idea was identical to @jukkar .. I confused the issue by mentioning boards/common-overlay dir, but common overlay dir could be anywhere. |
CONFIG_NET_L2_BT
no longer forces required BT configuration, butdepends on a user to set a valid configuration instead. Hence, we
need to select a proper configuration in the overlay config file.
Signed-off-by: Robert Lubos [email protected]