-
Notifications
You must be signed in to change notification settings - Fork 2.1k
make: reorganize makefile features #7880
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
make: reorganize makefile features #7880
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.
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...
@@ -4,6 +4,7 @@ FEATURES_PROVIDED += periph_i2c | |||
FEATURES_PROVIDED += periph_spi | |||
FEATURES_PROVIDED += periph_timer | |||
FEATURES_PROVIDED += periph_uart | |||
FEATURES_PROVIDED += periph_pm |
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.
should be moved to the (possible shared) CPU features file (as implemented for all atmega CPUs, right?)
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.
done
boards/f4vi1/Makefile.features
Outdated
@@ -1,6 +1,7 @@ | |||
# 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?
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.
correct!
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.
done
fddafc5
to
cf6a4a2
Compare
0865ee8
to
cc8a322
Compare
Ready for review. |
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.
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):
|
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.
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.features
taking any cpu, shared board and shared cpu file into account.