make: reorganize makefile features#7880
Conversation
haukepetersen
left a comment
There was a problem hiding this comment.
Nice one, I like it, and I would say let's roll with this one!
From my perspective I would love to see the full adaption of this PR so we can do a full review. As everything is WIP here, consider my comments more as a 'don't forget' flag instead of a real review...
| FEATURES_PROVIDED += periph_spi | ||
| FEATURES_PROVIDED += periph_timer | ||
| FEATURES_PROVIDED += periph_uart | ||
| FEATURES_PROVIDED += periph_pm |
There was a problem hiding this comment.
should be moved to the (possible shared) CPU features file (as implemented for all atmega CPUs, right?)
| # Put defined MCU peripherals here (in alphabetical order) | ||
| FEATURES_PROVIDED += periph_timer | ||
| FEATURES_PROVIDED += periph_uart | ||
| FEATURES_PROVIDED += periph_gpio |
There was a problem hiding this comment.
We could also move periph_gpio feature entries from all stm or even cortexm based boards to the CPU files, as these are not dependent on any board specific configuration and they are implemented for all these CPUs
There was a problem hiding this comment.
My understanding was that the feature being available also depends on the board's configuration in periph_conf.h and thus might override a CPU definition.
| @@ -0,0 +1 @@ | |||
| FEATURES_PROVIDED += cpp | |||
There was a problem hiding this comment.
Then this PR is missing the removal of all the cpp entries from all the cortexm boards, but this is part of the WIP right?
fddafc5 to
cf6a4a2
Compare
0865ee8 to
cc8a322
Compare
|
Ready for review. |
jnohlgard
left a comment
There was a problem hiding this comment.
It seems cpuid and hwrng are missing from kinetis_common
Yes, thanks. Fixed. |
|
Just wrote and used this test to check for changes in supported boards due to feature changes: Found that this PR introduces a changed output for 'make info-boards-supported' for a number of tests. See this gist for the diff: https://gist.github.com/haukepetersen/d295ff0bd76bd876a1ab38fd8930681c |
|
ups, the diff does not show the test names, so here is the raw data: https://gist.github.com/haukepetersen/fb6b50cff132e99790929976a6b4b8a7 |
9aca9c9 to
50dcd09
Compare
|
I think I got them all. Actually, some more tests are build now (probably some features were not specified before. btw, I used on both master and this branch, and compared the output with |
|
notes for follow ups (do not need to be addressed in this PR):
|
haukepetersen
left a comment
There was a problem hiding this comment.
Looked through all the changes once more, everything looks valid to me. Also analyzed the diff between info-boards-supported for all tests/examples between master and this branch. All differences lead to more boards being tested now, so no problem here (actually in the contrary...).
-> ACK
|
Oh: and you might want to sqash?! :-) |
7c63219 to
0898bf5
Compare
0898bf5 to
f7f3b68
Compare
@haukepetersen I kept the cpu reorganiation in seperate commits. That fine with you? |
This issue is addressed. So @gebart hope you are not mad that I dismiss your review :-) |
|
All good -> go |
This PR implements a chain
Makefile.featurestaking any cpu, shared board and shared cpu file into account.