On Mon, 20 Oct 2014 07:26:20 +0400 Paul Fertser <fercer...@gmail.com> wrote:
> On Sun, Oct 19, 2014 at 10:45:17PM +0100, Steven Chamberlain wrote: > > If you want something equivalent to Linux libusb 1.0 API, I think you > > need to Build-Depend on libusb2-dev [kfreebsd-any] rather than libusb-dev. > > Right, libusb-0.1 API is still needed for some older drivers, but it > is provided by libusb2-dev on kfreebsd, libusb-dev shouldn't be used > there. My fault, I got really confused in all this libusb* mess. I will apply your patch as-is and upload a -4. > > Dropping libftdi-dev from Build-Depends on kfreebsd-amd64, I actually > > get a successful build; how does that work? Does MPSSE mode not need > > ftdi.h any more? If so, libftdi-dev can be dropped from Build-Depends > > on linux, too. But I have no way of testing openocd. > > MPSSE mode depends only on libusb-1, however, there're three other > drivers (USB Blaster, ASIX Presto, OpenJTAG; USB Blaster being really > important here) plus legacy ft2232 implementation that need > libftdi-dev. If I'm not wrong: * usb-blaster support is autodetected * presto and openjtag should be explicitely enabled (currently aren't) * we don't currently explicitly enable any legacy ft2232 So the above patch should be ok. I'm just slightly confused about usb-blaster on kfreebsd, which seems to have been autoenabled even though libftdi-dev was missing. Cheers, Luca
signature.asc
Description: This is a digitally signed message part.