drivers: add driver specific Makefile.dep#14386
Conversation
72f2063 to
d9e4301
Compare
|
I fear that this one will be hard to maintain in the long run... |
Would be |
You mean this PR, or the actual changes? If no dependencies have changed I think we can move quickly with this one, but is @miri64 OK with us merging this one in soft feature freeze? |
drivers/Makefile.dep
Outdated
| FEATURES_REQUIRED += periph_spi | ||
| endif | ||
|
|
||
| ifneq (,$(filter ccs811_full,$(USEMODULE))) |
There was a problem hiding this comment.
I wonder if it would be better to always address driver variants defined by pseudomodules with %, for example.
| ifneq (,$(filter ccs811_full,$(USEMODULE))) | |
| ifneq (,$(filter ccs811%,$(USEMODULE))) |
Everything else is done by drivers/*/Makefile.dep. For most of the pseudomodules it's already done in that way, but for some of them direct names are used.
There was a problem hiding this comment.
Sure, I started with the brute force way but we can refine for sure !
There was a problem hiding this comment.
Since we touch it once, we should change it with this PR. If I'm right, there are less than 10 occurrences.
There was a problem hiding this comment.
Addressed, I prefer to use ccs811_%.
Thanks! |
|
@aabadie I went through all the changes. From what I have seen, it should be the same. But we should rely on tools. If it helps, I could run the script if @fjmolinas run for PR #14353 takes too long. |
The script is still running on my side, so feel free to run it yourself. I would probably run it tonight and look at the results tomorrow/ |
Ok, I will start it immediatly. My computer is |
|
@fjmolinas for each application I get the two warnings Is that normal? |
Not sure if normal, but unrelated. I'll take a look. |
d9e4301 to
ffbcb8a
Compare
I have a second machine, useful for running this kind of things while keeping my laptop free. |
|
32c4817 to
56ad5a0
Compare
|
Now that the release branch was created after the hard feature freeze, we should merge this PR as soon as possible before new drivers are merged. @aabadie Please squash. |
56ad5a0 to
7d8d89a
Compare
|
I had conflicts when rebasing the last time (a couple of hours ago) so I think it's safer to re-run the checks. I rebased again and squashed the branch. |
benpicco
left a comment
There was a problem hiding this comment.
Soft feature freeze is over, Murdock is happy and this is a good improvement.
Let's get this in before new merge conflicts pop up.
7d8d89a to
3b8ac51
Compare
|
rebased once again. |
3b8ac51 to
de3d388
Compare
|
Again, looks good from my point of view. Ping @fjmolinas Based on the results of your comparison in #14386 (comment), can we be sure that the dependencies are resolved correctly, even if |
de3d388 to
0357b44
Compare
|
rebased to solve the conflict introduced when #14497 was just merged. |
|
We should merge it before further conflicts pop up. But I'm a bit unsure without the final statement from @fjmolinas 😟 |
I can ping him IRL :D |
That would be good. My concern was that although the sorted versions of |
fjmolinas
left a comment
There was a problem hiding this comment.
Found why there are repeated features, you can squash right away.
Makefile.dep
Outdated
| include $(RIOTBASE)/drivers/Makefile.dep | ||
|
|
||
| # pull Makefile.dep of each driver modules if they exist | ||
| -include $(USEMODULE:%=$(RIOTBASE)/drivers/%/Makefile.dep) |
There was a problem hiding this comment.
| -include $(USEMODULE:%=$(RIOTBASE)/drivers/%/Makefile.dep) | |
| -include $(sort $(USEMODULE:%=$(RIOTBASE)/drivers/%/Makefile.dep)) |
This will fix having the list included multiple times.
Only keep the dependency resolution for drivers declared as pseudo-modules
0357b44 to
0c86b72
Compare
|
Could you kindly check into it ? |
Contribution description
This PR splits the main
drivers/Makefile.depin driver specificMakefile.deps.The dependency resolution for drivers modules defined as pseudo-modules still have to be done in the main
drivers/Makefile.depbut just add the "real" module as a dependency.There was a dependency resolution for
nrfminindrivers/Makefile.depbut it has nothing to do here, this PR moves it tocpu/nrf5x_common/Makefile.dep.Testing procedure
Issues/PRs references
Similar to #14369 but for Makefile.dep