]> git.gag.com Git - fw/openocd/commit
configure: split build of hla layouts
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 10 Jun 2020 14:08:41 +0000 (16:08 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Wed, 8 Jul 2020 21:07:21 +0000 (22:07 +0100)
commit6a81bad3b973e54ce68496d22750d643741afb32
tree6258e46a23d2c800490862463993e089d26441e7
parent327d18220ffb005884a742992657b6b5a4be2232
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
configure.ac
src/jtag/drivers/Makefile.am
src/jtag/hla/hla_layout.c
src/jtag/interfaces.c