jtag: drivers: build usb_blaster only if enabled

Fix build failure when libusb dev files are not available and
so usb_blaster is disabled.

Change-Id: I4cda7df689cdb4b62b733cbbab813241cf561e29
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/3920
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
gitignore-build
Paul Fertser 2016-12-25 20:24:57 +03:00
parent 33db10a158
commit 7851207cf0
1 changed files with 1 additions and 1 deletions

View File

@ -78,6 +78,7 @@ DRIVERFILES += %D%/jtag_vpi.c
endif endif
if USB_BLASTER_DRIVER if USB_BLASTER_DRIVER
%C%_libocdjtagdrivers_la_LIBADD += %D%/usb_blaster/libocdusbblaster.la %C%_libocdjtagdrivers_la_LIBADD += %D%/usb_blaster/libocdusbblaster.la
include %D%/usb_blaster/Makefile.am
endif endif
if AMTJTAGACCEL if AMTJTAGACCEL
DRIVERFILES += %D%/amt_jtagaccel.c DRIVERFILES += %D%/amt_jtagaccel.c
@ -171,4 +172,3 @@ DRIVERHEADERS = \
%D%/versaloon/versaloon_include.h \ %D%/versaloon/versaloon_include.h \
%D%/versaloon/versaloon_internal.h %D%/versaloon/versaloon_internal.h
include %D%/usb_blaster/Makefile.am