From 414e4eb40e9a5decfaa2a5aef9ceac9768b7740b Mon Sep 17 00:00:00 2001 From: Matthias Welwarsky Date: Wed, 6 Apr 2016 10:35:13 +0200 Subject: ftdi: make ftdi_location command depend on libusb1 version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: http://openocd.zylin.com/3396 Tested-by: jenkins Reviewed-by: Andreas Färber Reviewed-by: Freddie Chopin --- doc/openocd.texi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') diff --git a/doc/openocd.texi b/doc/openocd.texi index e839191..7e51c47 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -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 -- cgit v1.1