blob: 82733b589ea1ae7327e8f109e6dfe0f33b2574fd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
|
# Created by: Tomasz "CeDeROM" CEDRO (http://www.tomek.cedro.info)
# $FreeBSD$
PORTNAME= openocd
PORTVERSION= 0.7.0
CATEGORIES= devel
MASTER_SITES= SF
MAINTAINER= skreuzer@FreeBSD.org
COMMENT= Open On-Chip Debugger
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-werror
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
OPTIONS_DEFAULT=DOC JIMTCL PARPORT DUMMY FT2232 FTDI USBBLASTER EP93XX \
AT91RM9200 PRESTO USBPROG JLINK VSLLINK RLINK ULINK ARMJTAGEW \
BUSPIRATE STLINK OSBDM OPENDOUS RMTBITBANG
DOC_DESC= Build HTML and PDF documentation with Doxygen
JIMTCL_DESC= Build with internal JimTCL interpreter
VERBOSE_DESC= Enable verbose JTAG I/O messages
JTAG_IO_DESC= Enable verbose JTAG I/O messages
USB_IO_DESC= Enable verbose USB I/O messages
PARPORT_DESC= Support Parallel Port based drivers
DUMMY_DESC= Support Dummy Driver
FT2232_DESC= Support FT2232 based USB devices (using libftdi)
FTDI_DESC= Support experimental FTDI+MPSSE+libusb-1.0 async.
USBBLASTER_DESC=Support USB-Blaster Programmer (using libftdi)
EP93XX_DESC= Support EP93xx based SBCs
AT91RM9200_DESC=Support AT91RM9200 based SBCs
PRESTO_DESC= Support ASIX Presto Programmer (using libftdi)
USBPROG_DESC= Support USB-Prog JTAG Programmer
JLINK_DESC= Support Segger J-Link JTAG Programmer
VSLLINK_DESC= Support Versaloon-Link JTAG Programmer
RLINK_DESC= Support Raisonance RLink JTAG Programmer
ULINK_DESC= Support Keil ULINK-JTAG Programmer
ARMJTAGEW_DESC= Support Olimex ARM-JTAG-EW Programmer
BUSPIRATE= Support BusPirate Programmer
STLINK_DESC= Support STLink Programmer
TI_ICDI_DESC= Support TI ICDI JTAG Programmer
OSBDM_DESC= Support OSBDM Programmer (JTAG only)
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!)
MAN1= ${PORTNAME}.1
USE_GMAKE= yes
USE_BZIP2= yes
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
NO_STAGE= yes
# IMPORTANT INFORMATION FOR DEVELOPERS:
# Some Interfaces and Options are not on the list because they break a build.
# If you need them working on FreeeBSD, code, patches are welcome :-)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOC}
CONFIGURE_ARGS+= --enable-doxygen-pdf
WITH_DOXYGEN= yes
.else
CONFIGURE_ARGS+= --disable-doxygen-pdf --disable-doxygen-html
.endif
.if ${PORT_OPTIONS:MJIMTCL}
CONFIGURE_ARGS+= --enable-internal-jimtcl
.else
CONFIGURE_ARGS+= --disable-internal-jimtcl
.endif
.if ${PORT_OPTIONS:MVERBOSE}
CONFIGURE_ARGS+= --enable-verbose
.else
CONFIGURE_ARGS+= --disable-verbose
.endif
.if ${PORT_OPTIONS:MJTAG_IO}
CONFIGURE_ARGS+= --enable-verbose-jtag-io
.else
CONFIGURE_ARGS+= --disable-verbose-jtag-io
.endif
.if ${PORT_OPTIONS:MUSB_IO}
CONFIGURE_ARGS+= --enable-verbose-usb-io
.else
CONFIGURE_ARGS+= --disable-verbose-usb-io
.endif
.if ${PORT_OPTIONS:MUSB_COMMS}
CONFIGURE_ARGS+= --enable-verbose-usb-comms
.else
CONFIGURE_ARGS+= --disable-verbose-usb-comms
.endif
.if ${PORT_OPTIONS:MMALLOC}
CONFIGURE_ARGS+= --enable-malloc-logging
.else
CONFIGURE_ARGS+= --disable-malloc-logging
.endif
.if ${PORT_OPTIONS:MPARPORT}
CONFIGURE_ARGS+= --enable-parport
.else
CONFIGURE_ARGS+= --disable-parport
.endif
.if ${PORT_OPTIONS:MDUMMY}
CONFIGURE_ARGS+= --enable-dummy
.else
CONFIGURE_ARGS+= --disable-dummy
.endif
.if ${PORT_OPTIONS:MFT2232}
CONFIGURE_ARGS+= --enable-ft2232_libftdi
WITH_LIBFTDI= yes
.else
CONFIGURE_ARGS+= --disable-ft2232_libftdi
.endif
.if ${PORT_OPTIONS:MFTDI}
CONFIGURE_ARGS+= --enable-ftdi
.else
CONFIGURE_ARGS+= --disable-ftdi
.endif
.if ${PORT_OPTIONS:MUSBBLASTER}
CONFIGURE_ARGS+= --enable-usb_blaster_libftdi
.else
CONFIGURE_ARGS+= --disable-usb_blaster_libftdi
.endif
.if ${PORT_OPTIONS:MAMTJTAGACCEL}
CONFIGURE_ARGS+= --enable-amtjtagaccel
.else
CONFIGURE_ARGS+= --disable-amtjtagaccel
.endif
.if ${PORT_OPTIONS:MZY1000}
CONFIGURE_ARGS+= --enable-zy1000
.else
CONFIGURE_ARGS+= --disable-zy1000
.endif
.if ${PORT_OPTIONS:MIOUTIL}
CONFIGURE_ARGS+= --enable-ioutil
.else
CONFIGURE_ARGS+= --disable-ioutil
.endif
.if ${PORT_OPTIONS:MEP93XX}
CONFIGURE_ARGS+= --enable-ep93xx
.else
CONFIGURE_ARGS+= --disable-ep93xx
.endif
.if ${PORT_OPTIONS:MAT91RM9200}
CONFIGURE_ARGS+= --enable-at91rm9200
.else
CONFIGURE_ARGS+= --disable-at91rm9200
.endif
.if ${PORT_OPTIONS:MGW16012}
CONFIGURE_ARGS+= --enable-gw16012
.else
CONFIGURE_ARGS+= --disable-gw16012
.endif
.if ${PORT_OPTIONS:MPRESTO}
CONFIGURE_ARGS+= --enable-presto_libftdi
WITH_LIBFTDI= yes
.else
CONFIGURE_ARGS+= --disable-presto_libftdi
.endif
.if ${PORT_OPTIONS:MUSBPROG}
CONFIGURE_ARGS+= --enable-usbprog
WITH_LIBUSB= yes
.else
CONFIGURE_ARGS+= --disable-usbprog
.endif
.if ${PORT_OPTIONS:MOOCDTRACE}
CONFIGURE_ARGS+= --enable-oocd_trace
.else
CONFIGURE_ARGS+= --disable-oocd_trace
.endif
.if ${PORT_OPTIONS:MJLINK}
CONFIGURE_ARGS+= --enable-jlink
WITH_LIBUSB= yes
.else
CONFIGURE_ARGS+= --disable-jlink
.endif
.if ${PORT_OPTIONS:MVSLLINK}
CONFIGURE_ARGS+= --enable-vsllink
WITH_LIBUSB= yes
.else
CONFIGURE_ARGS+= --disable-vsllink
.endif
.if ${PORT_OPTIONS:MRLINK}
CONFIGURE_ARGS+= --enable-rlink
WITH_LIBUSB= yes
.else
CONFIGURE_ARGS+= --disable-rlink
.endif
.if ${PORT_OPTIONS:MULINK}
CONFIGURE_ARGS+= --enable-ulink
.else
CONFIGURE_ARGS+= --disable-ulink
.endif
.if ${PORT_OPTIONS:MARMJTAGEW}
CONFIGURE_ARGS+= --enable-arm-jtag-ew
WITH_LIBUSB= yes
.else
CONFIGURE_ARGS+= --disable-arm-jtag-ew
.endif
.if ${PORT_OPTIONS:MBUSPIRATE}
CONFIGURE_ARGS+= --enable-buspirate
.else
CONFIGURE_ARGS+= --disable-buspirate
.endif
.if ${PORT_OPTIONS:MSTLINK}
CONFIGURE_ARGS+= --enable-stlink
.else
CONFIGURE_ARGS+= --disable-stlink
.endif
.if ${PORT_OPTIONS:MTIICDI}
CONFIGURE_ARGS+= --enable-ti-icdi
.else
CONFIGURE_ARGS+= --disable-ti-icdi
.endif
.if ${PORT_OPTIONS:MOSBDM}
CONFIGURE_ARGS+= --enable-osbdm
.else
CONFIGURE_ARGS+= --disable-osbdm
.endif
.if ${PORT_OPTIONS:MOPENDOUS}
CONFIGURE_ARGS+= --enable-opendous
.else
CONFIGURE_ARGS+= --disable-opendous
.endif
.if ${PORT_OPTIONS:MSYSFSGPIO}
CONFIGURE_ARGS+= --enable-sysfsgpio
.else
CONFIGURE_ARGS+= --disable-sysfsgpio
.endif
.if ${PORT_OPTIONS:MRMTBITBANG}
CONFIGURE_ARGS+= --enable-remote-bitbang
.else
CONFIGURE_ARGS+= --disable-remote-bitbang
.endif
.if ${PORT_OPTIONS:MMINIDRIVER}
CONFIGURE_ARGS+= --enable-minidriver-dummy
.else
CONFIGURE_ARGS+= --disable-minidriver-dummy
.endif
.if defined(WITH_LIBFTDI)
LIB_DEPENDS+= ftdi:${PORTSDIR}/devel/libftdi
.endif
.if ${PORT_OPTIONS:MDOXYGEN}
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|