-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
teensy_loader_cli 2.1 (devel) #48252
teensy_loader_cli 2.1 (devel) #48252
Conversation
…outdated (2013-ish) zip source distribution and expose libusb compilation flags.
It is similar update to https://github.com/Homebrew/homebrew/pull/45558/files?diff=unified but after providing patches to upstream which were accepted. I'm not sure if providing Upstream unfortunately doesn't version this app so I wasn't sure if updating base installation to newest commit is a good choice and left the original zip source distribution as standard way of install... thou it is hell outdated and doesn't support many of development boards supported by newest git version. |
I just saw that tests failed for |
If it's not possible to write a test that passes both, you can use |
Thanks for the answer. I can't find any documentation on how to do it. If I place |
Actually, I may be wrong. We allow |
version "2.1.devel" | ||
end | ||
|
||
option "with-libusb-compat", "Uses libusb instead od OS X HID api to connect with teensy boards. Available only for --devel and upwards." |
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.
Can cut this option.
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
Fixed all checks and review comments. Please merge or advise what to do next. |
if build.with? "libusb-compat" | ||
ENV["USE_LIBUSB"] = "YES" | ||
else | ||
ENV["SDK"] = MacOS.sdk_path || "/" |
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.
Can you explain why SDK
doesn't need to be set when using libusb
? Thanks!
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.
teensy_loader_cli
codebase is a bit outdated. There is a lot #ifdef
s inside. Pure OSX codebase is not fully implemented. Using libusb
allows use of Linux codepath which is fully implemented, especially allows for use of soft reboots of connected board.
@oskargargas I merged this by mistake and have removed the Thanks for your contribution to Homebrew, though! Without people like you submitting PRs we couldn't run this project. You rock! |
@MikeMcQuaid it's not probable that upstream will tag versions anytime soon. I understand why you removed the FYI #45558 is a duplicate and after this merge could be closed as well. |
Thanks, closed.
Unfortunately not; we only use upstream versions. |
Closes Homebrew#48252. Signed-off-by: Mike McQuaid <[email protected]>
Update to allow use of devel repository instead of outdated (2013-ish) zip source distribution and expose libusb compilation flags.