diff options
author | skreuzer <skreuzer@FreeBSD.org> | 2016-02-27 02:33:41 +0800 |
---|---|---|
committer | skreuzer <skreuzer@FreeBSD.org> | 2016-02-27 02:33:41 +0800 |
commit | ab3ed5d6f9caf0c3bd825c3937af9f7bb9539229 (patch) | |
tree | a8e16d8735e868be8501fec691e6c885a2b371dd | |
parent | bbb94f091672de8411c97600d9cd6ffc7e2ea4c8 (diff) | |
download | freebsd-ports-gnome-ab3ed5d6f9caf0c3bd825c3937af9f7bb9539229.tar.gz freebsd-ports-gnome-ab3ed5d6f9caf0c3bd825c3937af9f7bb9539229.tar.zst freebsd-ports-gnome-ab3ed5d6f9caf0c3bd825c3937af9f7bb9539229.zip |
Add an option to build with support for CMSIS-DAP
PR: 207488
Submitted by: Bernd Walter <ticso@cicely7.cicely.de>
-rw-r--r-- | devel/openocd/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/devel/openocd/Makefile b/devel/openocd/Makefile index 30ffdf5ebca2..39fc37ab02f9 100644 --- a/devel/openocd/Makefile +++ b/devel/openocd/Makefile @@ -20,7 +20,7 @@ BROKEN_FreeBSD_9= libusb does not install pkgconfig files OPTIONS_DEFINE= DOC JIMTCL VERBOSE JTAG_IO USB_IO PARPORT DUMMY FT2232 FTDI \ USBBLASTER EP93XX AT91RM9200 PRESTO USBPROG JLINK VSLLINK RLINK ULINK \ ARMJTAGEW BUSPIRATE TIICDI STLINK OSBDM OPENDOUS SYSFSGPIO RMTBITBANG \ - MINIDRIVER + MINIDRIVER CMSISDAP OPTIONS_DEFAULT=DOC JIMTCL PARPORT DUMMY FT2232 FTDI USBBLASTER EP93XX \ AT91RM9200 PRESTO USBPROG JLINK VSLLINK RLINK ULINK ARMJTAGEW \ BUSPIRATE STLINK OSBDM OPENDOUS RMTBITBANG @@ -52,6 +52,7 @@ OPENDOUS= Support EStick/OpenDous Programmer SYSFSGPIO= Support Programming via sysfs GPIOs RMTBITBANG_DESC=Support Remote-Bitbang Driver MINIDRIVER_DESC=Dummy minidriver only (will exclude others!) +CMSISDAP_DESC=Support for CMSIS-DAP Compliant Debugger USES= gmake libtool pkgconfig tar:bzip2 CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib @@ -276,6 +277,13 @@ CONFIGURE_ARGS+= --enable-minidriver-dummy CONFIGURE_ARGS+= --disable-minidriver-dummy .endif +.if ${PORT_OPTIONS:MCMSISDAP} +CONFIGURE_ARGS+= --enable-cmsis-dap +LIB_DEPENDS+= libhidapi.so:${PORTSDIR}/comms/hidapi +.else +CONFIGURE_ARGS+= --disable-cmsis-dap +.endif + .if defined(WITH_LIBFTDI) LIB_DEPENDS+= libftdi.so:${PORTSDIR}/devel/libftdi .endif |