-
Notifications
You must be signed in to change notification settings - Fork 2k
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
dist/tools/insufficient_memory: Minor improvements #19303
dist/tools/insufficient_memory: Minor improvements #19303
Conversation
bors merge |
19303: dist/tools/insufficient_memory: Minor improvements r=maribu a=maribu ### Contribution description - address all shellcheck warnings - make script POSIX shell compatible - use nproc to set the number of parallel jobs to increase throughput - print error messages when building fails - run `make info-boards-supported` with `EXTERNAL_BOARD_DIRS=""` to avoid adding out-of-tree boards to `Makefile.ci`. ### Testing procedure Run the script; it should still work. ### Issues/PRs references None Co-authored-by: Marian Buschsieweke <[email protected]>
bors cancel |
Canceled. |
e804706
to
db106f8
Compare
508fd4d
to
a779fd0
Compare
Sorry, I forgot to also classify as |
a779fd0
to
72bf076
Compare
Another instance of missing |
`create_makefile.sh`: - address all shellcheck warnings - make script POSIX shell compatible - use nproc to set the number of parallel jobs to increase throughput - print error messages when building fails - run `make info-boards-supported` with `EXTERNAL_BOARD_DIRS=""` to avoid adding out-of-tree boards to `Makefile.ci`. - classify output as "not supported" also when used features are blacklisted, not only when required features are missing - classify output as "not supported' also when output contains `not supported. Stop.`, e.g. as raised by pkg/tinyusb on unsupported CPUs / CPU families. `add_insufficient_memory_board.sh`: - classify output as "not supported" also when used features are blacklisted, not only when required features are missing - classify output as "not supported' also when output contains `not supported. Stop.`, e.g. as raised by pkg/tinyusb on unsupported CPUs / CPU families.
72bf076
to
fe176f5
Compare
OK, looks like I have won this game of whack a mole this time :) Should now be ready for review |
bors merge |
Build succeeded: |
Thx :) |
|
||
for BOARD in $(make --no-print-directory info-boards-supported -C "${APP_DIR}"); do | ||
for BOARD in $(EXTERNAL_BOARD_DIRS="" make --no-print-directory info-boards-supported -C "${APP_DIR}"); do |
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.
hm for some reason this does not work, my list of EXTERNAL_BOARD_DIRS
still gets iterated.
What works is doing
EXTERNAL_BOARD_DIRS= make generate-Makefile.ci
but that's easily forgotten and we end up with internal boards in Makefile.ci
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.
for BOARD in $(EXTERNAL_BOARD_DIRS="" make --no-print-directory info-boards-supported -C "${APP_DIR}"); do | |
for BOARD in $(make EXTERNAL_BOARD_DIRS="" --no-print-directory info-boards-supported -C "${APP_DIR}"); do |
Could you give this a try?
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.
nope that doesn't make a difference
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.
But, it should! 😢
Contribution description
create_makefile.sh
:make info-boards-supported
withEXTERNAL_BOARD_DIRS=""
to avoid adding out-of-tree boards toMakefile.ci
.add_insufficient_memory_board.sh
:Testing procedure
Run the script; it should still work.
Issues/PRs references
None