-
-
Notifications
You must be signed in to change notification settings - Fork 39.6k
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
--parallel
improvements
#13800
--parallel
improvements
#13800
Conversation
this should probably target develop |
Sure, I can open a new PR, that targets |
No need, this is sorted already. |
Oh, I didn't know, that GitHub allows changing the target branch after the fact. Neat. Do you want me to force-push the changes with the resolved conflict for develop? |
Yes, please. And that conflict is part of my concern, since I know that a lot of CLI stuff got changed. |
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.
Good change! Besides my recommendations this will need a documentation update before merge.
AFAIK, the |
If it's not in |
Okay, I'll add it to |
Honestly, I think it may be more about the parens than anything else. If the information needs to be there it should be worked in naturally. The example from make itself is an ok (but not good) example of what I'm looking for:
That particular wording assumes more knowledge than I wish it did. |
There are 2 hard problems in computer science... apparently, writing helpful help messages is one of them 😆. I really can't come up with anything better. The problem stems from the fact that make has pretty weird Also, I've added some documentation to |
Checking file size of ergosaurus_default.hex [OK]
* The firmware size is fine - 23192/28672 (80%, 5480 bytes free)
^CWaiting for USB serial port - reset your controller now (Ctrl+C to cancel)..............make[1]: *** [tmk_core/avr.mk:338: flash] Interrupt
make: *** [Makefile:529: ergosaurus:default:flash] Interrupt I dont get the "port - reset your controller now" till i With that, it might be only |
@zvecr Unfortunately, I am currently unable to test the flash step as I temporarily don't have my keyboard.
Edit: nvm, I understand that the problem is just that the prompt doesn't appear, since it's buffered. I'll take a look at what can be done to fix this. Probably tomorrow tho. |
Okay, I think, I've found a solution. @zvecr can you please test It's not that pretty of a solution, but it should work. Basically, A leading For now, I added it to
Not sure, if I missed anything. |
Btw, I checked |
@zvecr can you please verify, that your issue was resolved with the latest changes? |
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.
Have tested with stm32-dfu, atmel-dfu, and teensy halfkay bootloader, and all work as expected.
I've resolved the conflicts with recent refactoring changes, that moved parts of Also, I'm marking the changes requested by @skullydazed as resolved for now. I've added the required documentation and the long options. The remaining requested changes don't seem to apply any more. Feel free to reopen them if I've missed anything. |
Hmm, this breaks the Specifically, outputs:
Rather than actually generating the bootloader. Using the make command version works just fine, though. |
I am not sure, if I understand, what is the issue here. Can you provide more info? What command did you run? What did you expect to happen? What happened instead? Is it still working as expected, if you run it without Are you running
Running make manually prints After manually setting the |
It's that time of the week, where I go around all the PRs I am participating in and ping everyone! @drashna am I correct in assuming, that you've resolved your issue? |
* improve make parallel jobs support * document the --parallel option * disable the output-sync for interactive targets
* improve make parallel jobs support * document the --parallel option * disable the output-sync for interactive targets
Description
This PR has 2 improvements for
--parallel
support with makeparallel
values less than 1 will now mean "unlimited" (seemake --help | grep -- --jobs
). This is not a breaking change, because currently non-positiveparallel
values fail withmake: the '-j' option requires a positive integer argument
.If more than 1 job is used, the
--output-sync
option is also added. The stdout/stderr of each job will be collected by make and displayed synchronously, after each target is finished processing. This will fix [Feature Request] Prettier make output with parallel build #13707.Types of Changes
Issues Fixed or Closed by This PR
Checklist
(Not sure, if this is a "Core PR", so submiting it against
master
for now)(Not sure if
qmk --help
counts as documentation and I didn't find any references to--parallel
in the online docs)(I updated the
qmk --help
for subcommands that have--parallel
)