On Mon, Jan 2, 2017 at 6:27 PM, Paul Fertser <[email protected]> wrote: > Hello Xiaofan, > > Thank you very much for the update! > > On Mon, Jan 02, 2017 at 02:33:51PM +0800, Xiaofan Chen wrote: >> 2) Build libusb 1.0.21 release with --enable-usbdk > > Is libusb built with this option able to fall back to WinUSB backend > when UsbDk is not installed? If yes, what can be the possible downside > of always shipping it like that?
Unfortunately right now usbdk backend is mutual exclusive with the WinUSB backend. Ref: https://github.com/libusb/libusb/blob/master/libusb/Makefile.am if USE_USBDK OS_SRC = $(WINDOWS_USBDK_SRC) $(WINDOWS_COMMON_SRC) else OS_SRC = $(WINDOWS_USB_SRC) $(WINDOWS_COMMON_SRC) endif On the other hand, usbdk backend will still work with WinUSB based device since it will act as a filter for them as well. The only thing is that I seem to encounter some error messages with the usbdk backend and probably it will need some more work to get as mature as the WinUSB backend. Ref: 1) https://github.com/libusb/libusb/issues/232 2) https://sourceforge.net/p/libusb/mailman/message/35579730/ For the OpenOCD user, this may or may not be a problem. > > I think once 1.0.21 tarball is published, we can send a pull request > to MSYS2 to bump the version and add --enable-usbdk along the way (iff > it's still compatible with WinUSB, of course). FYI: libusb-1.0.21 tarball is published in Sourceforge. https://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.21/ -- Xiaofan ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
