Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Feb 2016 18:33:42 +0000 (UTC)
From:      Steven Kreuzer <skreuzer@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r409629 - head/devel/openocd
Message-ID:  <201602261833.u1QIXgwY067928@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: skreuzer
Date: Fri Feb 26 18:33:41 2016
New Revision: 409629
URL: https://svnweb.freebsd.org/changeset/ports/409629

Log:
  Add an option to build with support for CMSIS-DAP
  
  PR:		207488
  Submitted by:	Bernd Walter <ticso@cicely7.cicely.de>

Modified:
  head/devel/openocd/Makefile

Modified: head/devel/openocd/Makefile
==============================================================================
--- head/devel/openocd/Makefile	Fri Feb 26 18:25:53 2016	(r409628)
+++ head/devel/openocd/Makefile	Fri Feb 26 18:33:41 2016	(r409629)
@@ -20,7 +20,7 @@ BROKEN_FreeBSD_9=	libusb does not instal
 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 Progra
 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-dum
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602261833.u1QIXgwY067928>