static_tests: add build system checks#10060
Conversation
jcarrano
left a comment
There was a problem hiding this comment.
It works, and I agree that the patterns listed are bad patterns.
|
Why is murdock complaining that |
|
Hmm I should check on |
19c3855 to
df43c07
Compare
|
In git I updated the script accordingly. |
|
Murdock does not complain about it anymore. Just the waiting for the other PR dependencies to be squashed. I can the PR and re-order the commits to have parts integrated earlier if wanted. Like adding the script alone and only enabling it here when everything is fixed. What do you think ? |
|
I think it is a good idea to add the tool and enable it on separate commits. |
b95621f to
c78f241
Compare
|
I rebased on top of #10179 |
Dismissing my review now that the PR got split.
c78f241 to
ed28cc9
Compare
* Declare optional dependency to periph_rtc * Move CFLAGS definition to Makefile.include
sc_rtc.c should only be compiled if periph_rtc module is actually used. In practice there was not linking error when PERIPH_OPTIONAL|_REQUIRED was not set as shell_commands hides calling the functions with '#ifdef MODULE_PERIPH_RTC'.
ed28cc9 to
bcf0342
Compare
|
Rebased since #10179 was merged. I can split the fixes out if you want. |
jcarrano
left a comment
There was a problem hiding this comment.
All OK, build is passing, tool works.
Contribution description
Add a script to execute sanity checks on build system files.
It should prevent bad patterns to re-appear after being cleaned.
Currently adds a check for using the content of
FEATURESinstead ofUSEMODULE.There is one case currently ignored as fixing it requires handingFixed by #10153CPU dependencies and the script could go in without it.
Fixes
This PR also include fixes for the test that can be split in separate PRs.
I think mainly the
hifive1/fe310changes should have a separate review as they are a bit specific.Testing procedure
The script can be run directly with:
To test on master, it requires to cherry-picking just the commit adding the script and running it.
Issues/PRs references
It is part of issues found while working on #9913
The
fatfsissue was also found in #9307Depending on commits regarding
hifive1#10062and the script split in#10179