diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2020-06-10 16:08:41 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-07-08 22:07:21 +0100 |
commit | 6a81bad3b973e54ce68496d22750d643741afb32 (patch) | |
tree | 6258e46a23d2c800490862463993e089d26441e7 /src/jtag/drivers/Makefile.am | |
parent | 327d18220ffb005884a742992657b6b5a4be2232 (diff) | |
download | riscv-openocd-6a81bad3b973e54ce68496d22750d643741afb32.zip riscv-openocd-6a81bad3b973e54ce68496d22750d643741afb32.tar.gz riscv-openocd-6a81bad3b973e54ce68496d22750d643741afb32.tar.bz2 |
configure: split build of hla layouts
Current hla driver supports two "layout": stlink and ti-icdi.
The configure script allows to independently enable/disable the
the two layout. But in reality by selecting only one of them the
whole hla driver is built, including both "layouts".
This is currently not a big issue because the dependencies of the
two layout are the same (libusb), so we are sure that selecting
one of them would permit to build both.
This is going to change with the merge of a third "layout" for
Nuvoton Nu-Link, because it would be based on hidapi.
We need, at least, to decouple the build of libusb and hidapi
"layouts". A full decouple of each "layout" is also welcome to
match the selection done during configure.
Introduce a new automake macro for each of the two "layout" and
use them to conditionally build the "layout" files.
Use the existing autoconf macros to conditionally compile the code
that depends by the "layout".
Change-Id: Ia20da7a260002a8d2af883425aa401b8920d3f36
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5719
Tested-by: jenkins
Diffstat (limited to 'src/jtag/drivers/Makefile.am')
-rw-r--r-- | src/jtag/drivers/Makefile.am | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jtag/drivers/Makefile.am b/src/jtag/drivers/Makefile.am index 07824f6..b03f560 100644 --- a/src/jtag/drivers/Makefile.am +++ b/src/jtag/drivers/Makefile.am @@ -129,8 +129,10 @@ endif if REMOTE_BITBANG DRIVERFILES += %D%/remote_bitbang.c endif -if HLADAPTER +if HLADAPTER_STLINK DRIVERFILES += %D%/stlink_usb.c +endif +if HLADAPTER_ICDI DRIVERFILES += %D%/ti_icdi_usb.c endif if RSHIM |