aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport.h
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2020-11-01 15:39:23 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2020-11-07 20:53:39 +0000
commit384e90b06b5005aa04d695b8a67c81a0af646082 (patch)
treeb2ec4a213ed69862e8cd2523779b3192adbdd450 /src/transport/transport.h
parentad06fba6f07ceaaf88845658c47a8f50888e413e (diff)
downloadriscv-openocd-384e90b06b5005aa04d695b8a67c81a0af646082.zip
riscv-openocd-384e90b06b5005aa04d695b8a67c81a0af646082.tar.gz
riscv-openocd-384e90b06b5005aa04d695b8a67c81a0af646082.tar.bz2
build: fix build with --enable-minidriver-dummy
Commit 462c01206692 ("Add complete JTAG debug logging.") breaks the build for minidriver, that is enabled either on zy1000 build and on minidriver-dummy build. The check on BUILD_ZY1000 was added to pass the auto-build in jenkins. While the build issue with minidriver-dummy was known, as reported in the comment, it was not addressed and got ignored for slightly more than one year. Use the macro HAVE_JTAG_MINIDRIVER_H in place of BUILD_ZY1000 to take in account both builds that require the minidriver. Fix also the build in case configure enables the HLA drivers due to autodetection of libusb. The HLA drivers would not be in the build and the function transport_is_hla() would be missing. Change-Id: I1d85c5fa247bf4a85aba29b233c0b573b46665bc Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5911 Tested-by: jenkins
Diffstat (limited to 'src/transport/transport.h')
-rw-r--r--src/transport/transport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/transport.h b/src/transport/transport.h
index e04f780..6bf6aac 100644
--- a/src/transport/transport.h
+++ b/src/transport/transport.h
@@ -98,7 +98,7 @@ bool transport_is_dapdirect_jtag(void);
bool transport_is_dapdirect_swd(void);
bool transport_is_swim(void);
-#if BUILD_HLADAPTER
+#if BUILD_HLADAPTER && !HAVE_JTAG_MINIDRIVER_H
bool transport_is_hla(void);
#else
static inline bool transport_is_hla(void)