forked from auracaster/openocd
ftdi: make ftdi_location command depend on libusb1 version
The function libusb_get_port_numbers(), required for the command ftdi_location, is only available in recent version of libusb1. Compilation will break if the function is not available. This patch enables the command only if libusb1 contains the necessary function. Change-Id: I091e72dafa4ed22eea51692751d43246a8152987 Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com> Reviewed-on: http://openocd.zylin.com/3396 Tested-by: jenkins Reviewed-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
This commit is contained in:
committed by
Freddie Chopin
parent
18a6fdc154
commit
414e4eb40e
@@ -2564,6 +2564,8 @@ roots at @var{bus} and walks down the physical ports, with each
|
||||
@var{port} option specifying a deeper level in the bus topology, the last
|
||||
@var{port} denoting where the target adapter is actually plugged.
|
||||
The USB bus topology can be queried with the command @emph{lsusb -t}.
|
||||
|
||||
This command is only available if your libusb1 is at least version 1.0.16.
|
||||
@end deffn
|
||||
|
||||
@deffn {Config Command} {ftdi_channel} channel
|
||||
|
||||
Reference in New Issue
Block a user