drivers/Makefile.dep: remove inappropriate use of FEATURES_PROVIDED for rtt_rtc#14497
Conversation
|
Ok with this line removed, #14496 becomes necessary. whereas on |
And this is normal since the cpu doesn't provide that feature. |
|
If one wants to use the RTT emulated RTC then just add USEMODULE += rtt_rtc in the application Makefile. |
|
If you want I can also include this commit in #14496 |
benpicco
left a comment
There was a problem hiding this comment.
If the feature is provided by the board / CPU, this is not needed here.
|
@aabadie what is this PR waiting for? |
|
I added the label because IMHO we should merge #14496 first to not lose the functionality. I wanted RTC emulation enabled automatically for targets that only have a RTT, but @aabadie noted that a user could then also call |
Normally, nothing. if @benpicco agrees, we can (not to say should) remove the label. |
|
#14496 Has some issues regarding integration with our current build system, lets go ahead with this one as is. |
| ifneq (,$(filter periph_rtc,$(USEMODULE))) | ||
| USEMODULE += rtt_rtc | ||
| endif |
There was a problem hiding this comment.
We could at least have left this in place, it's only used if periph_rtc is explicitly requested.
There was a problem hiding this comment.
It makes no sense if the board doesn't provide that feature.
Contribution description
As seen when reviewing #14496, there's no reason to use FEATURES_PROVIDED in a Makefile.dep. The dependency resolution can be done later.
Any cpu already providing periph_rtt but not periph_rtc could simply add:
in its Makefile.dep and add
FEATURES_PROVIDED += periph_rtcin its Makefile.features
and that would work.
Maybe this breaks other platforms, let's see what Murdock has to say.
Testing procedure
Test
periph_rtcon nrf5x platforms with #14496 and it'll still work.Issues/PRs references
Found while reviewing #14496