-
Notifications
You must be signed in to change notification settings - Fork 2.1k
pkg/uwb*: add Kconfig dependency modelling #16780
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
Conversation
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.
Some initial comments
cpu/nrf5x_common/Kconfig
Outdated
if TEST_KCONFIG | ||
|
||
config MODULE_CPU_COMMON | ||
bool "Link nrf5x common code" |
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.
Not sure that this needs a prompt, as the user would not disable this one:
bool "Link nrf5x common code" | |
bool |
depends on HAS_VDD_LC_FILTER_REG0 | ||
default y if HAS_VDD_LC_FILTER_REG0 |
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.
depends on HAS_VDD_LC_FILTER_REG0 | |
default y if HAS_VDD_LC_FILTER_REG0 | |
depends on HAS_VDD_LC_FILTER_REG0 | |
default y |
config MODULE_VDD_LC_FILTER_REG1 | ||
bool | ||
depends on HAS_VDD_LC_FILTER_REG1 | ||
default y if HAS_VDD_LC_FILTER_REG1 |
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.
default y if HAS_VDD_LC_FILTER_REG1 | |
default y |
pkg/mynewt-core/Kconfig
Outdated
config MODULE_MYNEWT-CORE | ||
bool "Apache MyNewy mynewt-core RIOT implementation" | ||
|
||
config MODULE_AUTO_INIT_MYNEWT-CORE | ||
bool "Auto-initialize the mynewt-core package" | ||
default y | ||
depends on MODULE_AUTO_INIT | ||
|
||
config MODULE_MYNEWT-CORE_OS | ||
bool "mynewt-core kernel module" | ||
|
||
config MODULE_MYNEWT-CORE_UTIL | ||
bool "mynewt-core utilities modules" |
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.
Are all these modules optional? Meaning the user should be able to opt-out? or is it contrib? Also, maybe we could make PACKAGE_MYNEWT-CORE
a menuconfig
and make all these depend on it? would it be correct from the dependency point of view?
Will trigger murdock once |
There is one dependency I'm not sure how to map since
|
ping @leandrolanzieri |
It could be that the current modelling is not correct. Is the user supposed to select the mtd interface type (SPI NOR, SD-Card, etc.), or just the |
@benpicco @bergzand you have touched mtd If I recall correctly, any opinions? |
Rebased and squashed... maybe you can give it a clean look @leandrolanzieri? |
The sema issue relates to #16891, will think of a solution for that... |
sema currently does not depend on xtimer, but on xtimer or ztimer
87d1654
to
475cedf
Compare
@leandrolanzieri ok to squash? |
Anything pending to get this in? |
as the fixup is pretty small please squash! |
8b73c86
to
3d38765
Compare
examples/twr_aloha/app.config.test
Outdated
@@ -0,0 +1,13 @@ | |||
CONFIG_PACKAGE_UWB-CORE=y | |||
CONFIG_PACKAGE_MYNEWT-CORE=y |
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.
Do you need this? the Makefile doesn't have it and it seems to be brought in anyways
5377f28
to
8efe255
Compare
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.
Looks good, thanks @fjmolinas for this one! ACK
Thanks for the review @leandrolanzieri!! |
Contribution description
This PR models dependency in Kconfig related to uwb-core/uwb-dw1000 package, since this runs only on
dwm1001
so far this PR goes throgh modelling dependencies for:mynewt-core
uwb-core
uwb-dw1000
nrf52
(excluding netif related dependencies)FEEDBACK wanted:
select
for the packages, I think its fine since those titely coupledxtimer
orztimer
are included, should I leave it as is? Maybe add a comment?Testing procedure
Binaries are the same:
Issues/PRs references
Depends on #16719 (for the DEVELHELP commit)