[WIP] Apply automatic board list formatting from #10111 to Makefiles#10130
[WIP] Apply automatic board list formatting from #10111 to Makefiles#10130x3ro wants to merge 1 commit intoRIOT-OS:masterfrom
Conversation
|
am I the only one who's bothered by having to scroll down first thing after opening a test's Makefile? |
tests/socket_zep/Makefile
Outdated
| native \ | ||
| on \ | ||
| only \ | ||
| socket_zep |
Not sure what you mean? Do you mean that the board blacklist/whitelists are too long and you have to scroll down to see the USEMODULE etc lines in the Makefile? |
Yes... |
So far yes @kaspar030, or at least it seems like the opinions on the trade-off between diff cleanliness and long board lists are favoring the former |
|
You can just search: |
Yup. Everytime I open the file, which might be hundred times more often than I modify the lists. Multiplied by the number of people that read at our code, that is quite often. To me it seems like the board lists get much more screen real estate as they are relevant. If there's a script that does the formatting anyways, why not have that output lines that fill 80 characters? |
|
Maybe we just move the BOARD_* below the USEMODULE? |
Yeah, why not? as far down as possible. |
To make diffs clean, relevant and reviewable.
Seems doable |
|
What about including from (a) separate files(s)? |
Could you elaborate how this would improve the situation over putting the lists at the end of the file? |
I didn't intend to compete with the "end of file" solution. :) It was just a suggestion to get that list out of the sight. At least you can retain the original loading order when you use includes. And if there are intentions to do any processing (formatting) it can prevent messing up other parts. But I'm not sure if any of this really matters. |
9669152 to
e3cb71f
Compare
e3cb71f to
be08fa0
Compare
MrKevinWeiss
left a comment
There was a problem hiding this comment.
So far only a few things that should be fixed up manually then I am happy.
| CFLAGS += -Wno-infinite-recursion | ||
| endif | ||
|
|
||
| BOARD_WHITELIST := \ |
There was a problem hiding this comment.
Maybe manually alter this so it doesn't look so silly? I don't it is worth the effort adding this corner case into the script.
|
|
||
| TERMFLAGS ?= -z [::1]:17754 | ||
|
|
||
| BOARD_WHITELIST := \ |
There was a problem hiding this comment.
Also manually fix this guy.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
|
Darn... |
|
Maybe see if the updated script works on this. If there are only a few corner cases that go against convention I think manual fixes are fine. |
|
Closing this. I'd prefer to open a new PR with a clean discussion. |
Contribution description
Applies the formatting mechanism from #10111 to all relevant Makefiles. Still marked as WIP since there are some corner cases to be fixed.