1 |
commit: 8c2623a628549575330835fbe1ffa8d301a40b26 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 31 10:01:40 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 31 21:48:20 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c2623a6 |
7 |
|
8 |
dev-embedded/openocd: Clean old up |
9 |
|
10 |
dev-embedded/openocd/Manifest | 4 - |
11 |
.../openocd/files/openocd-0.8.0-jimtcl-0.75.patch | 66 ---------- |
12 |
dev-embedded/openocd/metadata.xml | 7 -- |
13 |
dev-embedded/openocd/openocd-0.5.0.ebuild | 76 ----------- |
14 |
dev-embedded/openocd/openocd-0.6.1.ebuild | 103 --------------- |
15 |
dev-embedded/openocd/openocd-0.7.0-r1.ebuild | 117 ----------------- |
16 |
dev-embedded/openocd/openocd-0.8.0.ebuild | 139 --------------------- |
17 |
7 files changed, 512 deletions(-) |
18 |
|
19 |
diff --git a/dev-embedded/openocd/Manifest b/dev-embedded/openocd/Manifest |
20 |
index 4c3bcc01dfb..d245d5b1033 100644 |
21 |
--- a/dev-embedded/openocd/Manifest |
22 |
+++ b/dev-embedded/openocd/Manifest |
23 |
@@ -1,6 +1,2 @@ |
24 |
DIST openocd-0.10.0.tar.gz 6124274 BLAKE2B 3b455fce6c62626b507e8609789e95e6a542038605423400d08ad2d14d6db0953194bb22d893e3919c79ef02a1b43ccb6396d3370273e375d340c41b587bdfbf SHA512 44b303b0df1d7c13bc18b8995493de64fed7a853704455d484dfc4a74a1ba4b0d42b4679a7009ec015dc71c47152e5556a1a02665cfafe7af80c608b68d8310a |
25 |
-DIST openocd-0.5.0.tar.bz2 2228655 BLAKE2B e8e12f72471d446be7426c14568d2efea2b002758846413e0319c79dce7cecd29279d022a27a190ce5c70dc65ec724aec854b5eee88e0ab57895139f49f80778 SHA512 8e2e168a35bf3f753683115fd5f4d4c79e54cd0fe5d072921475d43880619e5b4ab60f28d97a4a595d4b77938b9218e689013f66a925ee8007e6499f5b42448c |
26 |
-DIST openocd-0.6.1.tar.bz2 3431071 BLAKE2B 4dd32fc89b53d62c29c92b7f1b0d1f4c4cd08a717748bc473b2dd750e68c9b9377a879cf7c58bd6ad4b05c712a8e698db4579e384e79ea44a278536b293c9ba8 SHA512 59f35750f761d3f2ce7a32ffdc5028d053fda2bd9424cc4497f528ec628ac1f022662d9f226dd2b04a8cd682a5cd056a09de14d50e1090426a816bb602f98250 |
27 |
-DIST openocd-0.7.0.tar.bz2 3493924 BLAKE2B 23bd079c3610f75ec8c16dac12621b390f2b1d891573dbff59954cba35eea61eff3386701c918121ee38d614738f197963b1406346f14d0528f5a65f633d209d SHA512 bfba267e5cda558b347f6fab1a286353b97d81093c0457ac044667baa369f5cd47a07b3ce6a1ceb66e7992c2e4224765458dd859d0a6fa748ad8e6f80ea541ad |
28 |
-DIST openocd-0.8.0.tar.gz 4821738 BLAKE2B dff8c951b28c1a61be33f9e540ebe6aa662429b5d522fc169a8bd80b04c63442c8d50aba41c2413436e630afdb65e2da83191128076ba58f7bc96edcb8c2d2aa SHA512 9130b683394c4d99cd4c5365ba2bbe07ca8bdf0d02bdd4504b0f5f376209e787955d725c11d811f8937b7b0fc207c8d02e0b7484607edd2f68b2d00d48250f2c |
29 |
DIST openocd-0.9.0.tar.gz 4970346 BLAKE2B 96421b32a3e64fc1ed362288f5a444cc1249f3d6daab6307f920c86fff11cb74a0bbb9f021788b848a8755139ee1c43c54793ac57a429f4e39df47f0775c2538 SHA512 698b43867f8134da43a50f5d2ff2ae33b71df8ccffc45fb5c3d0bd7a6289fcd9e7bb3d89287ad4dbdb02e1871db69f3913db950965335eaf8559247f2e58c227 |
30 |
|
31 |
diff --git a/dev-embedded/openocd/files/openocd-0.8.0-jimtcl-0.75.patch b/dev-embedded/openocd/files/openocd-0.8.0-jimtcl-0.75.patch |
32 |
deleted file mode 100644 |
33 |
index 1791cabc66f..00000000000 |
34 |
--- a/dev-embedded/openocd/files/openocd-0.8.0-jimtcl-0.75.patch |
35 |
+++ /dev/null |
36 |
@@ -1,66 +0,0 @@ |
37 |
-Apply upstream patch for jimtcl-0.75 compatibility |
38 |
- |
39 |
-X-Gentoo-Bug: 509902 |
40 |
-X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=509902 |
41 |
-Link: http://repo.or.cz/w/openocd.git/commitdiff/92ea548aafee840e1507306a3ffb38625f427ec5 |
42 |
- |
43 |
-Signed-off-by: Markos Chandras <hwoarang@g.o> |
44 |
- |
45 |
-From 92ea548aafee840e1507306a3ffb38625f427ec5 Mon Sep 17 00:00:00 2001 |
46 |
-From: Paul Fertser <fercerpav@×××××.com> |
47 |
-Date: Mon, 28 Apr 2014 14:34:47 +0400 |
48 |
-Subject: [PATCH] Update to the current Jim Tcl |
49 |
- |
50 |
-This is a post-release version but hopefully some fixes that went in |
51 |
-are worth it; also the changes here make OpenOCD compatible with stock |
52 |
-0.75 version if a distro maintainer decides to use it. |
53 |
- |
54 |
-Change-Id: I7ad1814c7c4868198475cdca4750c3d0ee4f5f8b |
55 |
-Signed-off-by: Paul Fertser <fercerpav@×××××.com> |
56 |
-Reviewed-on: http://openocd.zylin.com/2121 |
57 |
-Tested-by: jenkins |
58 |
-Reviewed-by: Freddie Chopin <freddie.chopin@×××××.com> |
59 |
---- |
60 |
- jimtcl | 2 +- |
61 |
- src/helper/command.c | 2 +- |
62 |
- src/helper/command.h | 4 ++-- |
63 |
- 3 files changed, 4 insertions(+), 4 deletions(-) |
64 |
- |
65 |
-diff --git a/src/helper/command.c b/src/helper/command.c |
66 |
-index 21362a6..137ac7e 100644 |
67 |
---- a/src/helper/command.c |
68 |
-+++ b/src/helper/command.c |
69 |
-@@ -365,7 +365,7 @@ static int register_command_handler(struct command_context *cmd_ctx, |
70 |
- |
71 |
- LOG_DEBUG("registering '%s'...", ocd_name); |
72 |
- |
73 |
-- Jim_CmdProc func = c->handler ? &script_command : &command_unknown; |
74 |
-+ Jim_CmdProc *func = c->handler ? &script_command : &command_unknown; |
75 |
- int retval = Jim_CreateCommand(interp, ocd_name, func, c, NULL); |
76 |
- free(ocd_name); |
77 |
- if (JIM_OK != retval) |
78 |
-diff --git a/src/helper/command.h b/src/helper/command.h |
79 |
-index 0f0edbb..0eda5b5 100644 |
80 |
---- a/src/helper/command.h |
81 |
-+++ b/src/helper/command.h |
82 |
-@@ -168,7 +168,7 @@ struct command { |
83 |
- struct command *parent; |
84 |
- struct command *children; |
85 |
- command_handler_t handler; |
86 |
-- Jim_CmdProc jim_handler; |
87 |
-+ Jim_CmdProc *jim_handler; |
88 |
- void *jim_handler_data; |
89 |
- enum command_mode mode; |
90 |
- struct command *next; |
91 |
-@@ -204,7 +204,7 @@ char *command_name(struct command *c, char delim); |
92 |
- struct command_registration { |
93 |
- const char *name; |
94 |
- command_handler_t handler; |
95 |
-- Jim_CmdProc jim_handler; |
96 |
-+ Jim_CmdProc *jim_handler; |
97 |
- void *jim_handler_data; |
98 |
- enum command_mode mode; |
99 |
- const char *help; |
100 |
--- |
101 |
-1.7.6.6.GIT |
102 |
- |
103 |
|
104 |
diff --git a/dev-embedded/openocd/metadata.xml b/dev-embedded/openocd/metadata.xml |
105 |
index 78e604f7091..8bf4d21f418 100644 |
106 |
--- a/dev-embedded/openocd/metadata.xml |
107 |
+++ b/dev-embedded/openocd/metadata.xml |
108 |
@@ -11,18 +11,11 @@ |
109 |
<description>Upstream contact. CC him on bugs</description> |
110 |
</maintainer> |
111 |
<use> |
112 |
- <flag name="blaster">Enable support for Altera USE-Blaster</flag> |
113 |
<flag name="cmsis-dap">Support for CMSIS-DAP compliant adapters</flag> |
114 |
<flag name="dummy">Build the dummy port driver</flag> |
115 |
<flag name="jlink"> Build the SEGGER J-Link driver</flag> |
116 |
- <flag name="minidriver">Build the dummy minidriver</flag> |
117 |
- <flag name="ftd2xx">Enable support for USB FTDI chips via <pkg>dev-embedded/libftd2xx</pkg></flag> |
118 |
<flag name="ftdi">Enable support for USB FTDI chips via <pkg>dev-embedded/libftdi</pkg></flag> |
119 |
<flag name="parport">Enable support for parport JTAG devices</flag> |
120 |
- <flag name="presto">Enable support for AXIS PRESTO devices</flag> |
121 |
- <flag name="segger">Enable support for the Segger J-Link JTAG</flag> |
122 |
- <flag name="stlink">Enable building support for the ST-Link JTAG Programmer</flag> |
123 |
- <flag name="versaloon">Enable building support for the Versallon-lInk JTAG</flag> |
124 |
<flag name="verbose-io">Verbose IO and comm JTAG and USB messages</flag> |
125 |
</use> |
126 |
<upstream> |
127 |
|
128 |
diff --git a/dev-embedded/openocd/openocd-0.5.0.ebuild b/dev-embedded/openocd/openocd-0.5.0.ebuild |
129 |
deleted file mode 100644 |
130 |
index aae09088d93..00000000000 |
131 |
--- a/dev-embedded/openocd/openocd-0.5.0.ebuild |
132 |
+++ /dev/null |
133 |
@@ -1,76 +0,0 @@ |
134 |
-# Copyright 1999-2017 Gentoo Foundation |
135 |
-# Distributed under the terms of the GNU General Public License v2 |
136 |
- |
137 |
-EAPI="4" |
138 |
- |
139 |
-inherit eutils multilib |
140 |
- |
141 |
-if [[ ${PV} == *9999 ]] ; then |
142 |
- inherit autotools git-r3 |
143 |
- EGIT_REPO_URI="https://git.code.sf.net/p/${PN}/code" |
144 |
-else |
145 |
- KEYWORDS="~amd64 ~x86" |
146 |
- SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.bz2" |
147 |
-fi |
148 |
- |
149 |
-DESCRIPTION="OpenOCD - Open On-Chip Debugger" |
150 |
-HOMEPAGE="http://openocd.sourceforge.net" |
151 |
- |
152 |
-LICENSE="GPL-2" |
153 |
-SLOT="0" |
154 |
-IUSE="blaster dummy ftd2xx ftdi minidriver parport presto segger usb versaloon" |
155 |
-RESTRICT="strip" # includes non-native binaries |
156 |
- |
157 |
-# libftd2xx is the default because it is reported to work better. |
158 |
-DEPEND="<dev-lang/jimtcl-0.73 |
159 |
- usb? ( virtual/libusb:0 ) |
160 |
- presto? ( dev-embedded/libftd2xx ) |
161 |
- ftd2xx? ( dev-embedded/libftd2xx ) |
162 |
- ftdi? ( dev-embedded/libftdi:0 )" |
163 |
-RDEPEND="${DEPEND}" |
164 |
- |
165 |
-REQUIRED_USE="blaster? ( || ( ftdi ftd2xx ) ) ftdi? ( !ftd2xx )" |
166 |
- |
167 |
-src_prepare() { |
168 |
- if [[ ${PV} == "9999" ]] ; then |
169 |
- sed -i -e "/@include version.texi/d" doc/${PN}.texi || die |
170 |
- AT_NO_RECURSIVE=yes eautoreconf |
171 |
- fi |
172 |
-} |
173 |
- |
174 |
-src_configure() { |
175 |
- # Here are some defaults |
176 |
- myconf="--enable-buspirate --enable-ioutil --disable-werror |
177 |
- --disable-internal-jimtcl --enable-amtjtagaccel |
178 |
- --enable-ep93xx --enable-at91rm9200 --enable-gw16012 |
179 |
- --enable-oocd_trace" |
180 |
- |
181 |
- if use usb; then |
182 |
- myconf="${myconf} --enable-usbprog --enable-jlink --enable-rlink \ |
183 |
- --enable-vsllink --enable-arm-jtag-ew" |
184 |
- fi |
185 |
- |
186 |
- # add explicitely the path to libftd2xx |
187 |
- use ftd2xx && LDFLAGS="${LDFLAGS} -L/opt/$(get_libdir)" |
188 |
- |
189 |
- if use blaster; then |
190 |
- use ftdi && myconf="${myconf} --enable-usb_blaster_libftdi" |
191 |
- use ftd2xx && myconf="${myconf} --enable-usb_blaster_ftd2xx" |
192 |
- fi |
193 |
- econf \ |
194 |
- $(use_enable dummy) \ |
195 |
- $(use_enable ftdi ft2232_libftdi) \ |
196 |
- $(use_enable ftd2xx ft2232_ftd2xx) \ |
197 |
- $(use_enable minidriver minidriver-dummy) \ |
198 |
- $(use_enable parport) \ |
199 |
- $(use_enable presto presto_ftd2xx) \ |
200 |
- $(use_enable segger jlink) \ |
201 |
- $(use_enable versaloon vsllink) \ |
202 |
- ${myconf} |
203 |
-} |
204 |
- |
205 |
-src_install() { |
206 |
- emake DESTDIR="${D}" install || die |
207 |
- dodoc AUTHORS ChangeLog NEWS README TODO || die |
208 |
- prepstrip "${D}"/usr/bin |
209 |
-} |
210 |
|
211 |
diff --git a/dev-embedded/openocd/openocd-0.6.1.ebuild b/dev-embedded/openocd/openocd-0.6.1.ebuild |
212 |
deleted file mode 100644 |
213 |
index d065bac6e8d..00000000000 |
214 |
--- a/dev-embedded/openocd/openocd-0.6.1.ebuild |
215 |
+++ /dev/null |
216 |
@@ -1,103 +0,0 @@ |
217 |
-# Copyright 1999-2017 Gentoo Foundation |
218 |
-# Distributed under the terms of the GNU General Public License v2 |
219 |
- |
220 |
-EAPI="4" |
221 |
- |
222 |
-inherit eutils multilib flag-o-matic toolchain-funcs |
223 |
- |
224 |
-if [[ ${PV} == *9999 ]] ; then |
225 |
- inherit autotools git-r3 |
226 |
- EGIT_REPO_URI="https://git.code.sf.net/p/${PN}/code" |
227 |
-else |
228 |
- KEYWORDS="~amd64 ~x86" |
229 |
- SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.bz2" |
230 |
-fi |
231 |
- |
232 |
-DESCRIPTION="OpenOCD - Open On-Chip Debugger" |
233 |
-HOMEPAGE="http://openocd.sourceforge.net" |
234 |
- |
235 |
-LICENSE="GPL-2" |
236 |
-SLOT="0" |
237 |
-IUSE="blaster dummy ftd2xx ftdi minidriver parport presto segger stlink usb versaloon" |
238 |
-RESTRICT="strip" # includes non-native binaries |
239 |
- |
240 |
-# libftd2xx is the default because it is reported to work better. |
241 |
-DEPEND=">=dev-lang/jimtcl-0.73 |
242 |
- usb? ( virtual/libusb:0 ) |
243 |
- presto? ( dev-embedded/libftd2xx ) |
244 |
- ftd2xx? ( dev-embedded/libftd2xx ) |
245 |
- ftdi? ( dev-embedded/libftdi )" |
246 |
-RDEPEND="${DEPEND}" |
247 |
- |
248 |
-REQUIRED_USE="blaster? ( || ( ftdi ftd2xx ) ) ftdi? ( !ftd2xx )" |
249 |
- |
250 |
-src_prepare() { |
251 |
- if [[ ${PV} == "9999" ]] ; then |
252 |
- sed -i -e "/@include version.texi/d" doc/${PN}.texi || die |
253 |
- AT_NO_RECURSIVE=yes eautoreconf |
254 |
- fi |
255 |
- |
256 |
- # Disable craptastic build settings. |
257 |
- sed -i \ |
258 |
- -e 's:if test "[$]OCDxprefix" != "[$]ac_default_prefix":if false:' \ |
259 |
- configure || die |
260 |
- |
261 |
- if use ftdi ; then |
262 |
- local pc="libftdi$(has_version dev-embedded/libftdi:1 && echo 1)" |
263 |
- # Use libftdi-1 paths #460916 |
264 |
- local libs=$($(tc-getPKG_CONFIG) --libs ${pc}) |
265 |
- sed -i \ |
266 |
- -e "s:-lftdi -lusb:${libs}:" \ |
267 |
- configure src/Makefile.in || die |
268 |
- append-cppflags $($(tc-getPKG_CONFIG) --cflags ${pc}) |
269 |
- fi |
270 |
-} |
271 |
- |
272 |
-src_configure() { |
273 |
- # Here are some defaults |
274 |
- local myconf=( |
275 |
- --enable-buspirate |
276 |
- --enable-ioutil |
277 |
- --disable-werror |
278 |
- --disable-internal-jimtcl |
279 |
- --enable-amtjtagaccel |
280 |
- --enable-ep93xx |
281 |
- --enable-at91rm9200 |
282 |
- --enable-gw16012 |
283 |
- --enable-oocd_trace |
284 |
- ) |
285 |
- |
286 |
- if use usb; then |
287 |
- myconf+=( |
288 |
- --enable-usbprog |
289 |
- --enable-jlink |
290 |
- --enable-rlink |
291 |
- --enable-vsllink |
292 |
- --enable-arm-jtag-ew |
293 |
- ) |
294 |
- fi |
295 |
- |
296 |
- # add explicitely the path to libftd2xx |
297 |
- use ftd2xx && append-ldflags -L/opt/$(get_libdir) |
298 |
- |
299 |
- if use blaster; then |
300 |
- use ftdi && myconf+=( --enable-usb_blaster_libftdi ) |
301 |
- use ftd2xx && myconf+=( --enable-usb_blaster_ftd2xx ) |
302 |
- fi |
303 |
- econf \ |
304 |
- $(use_enable dummy) \ |
305 |
- $(use_enable ftdi ft2232_libftdi) \ |
306 |
- $(use_enable ftd2xx ft2232_ftd2xx) \ |
307 |
- $(use_enable minidriver minidriver-dummy) \ |
308 |
- $(use_enable parport) \ |
309 |
- $(use_enable presto presto_ftd2xx) \ |
310 |
- $(use_enable stlink) \ |
311 |
- $(use_enable segger jlink) \ |
312 |
- $(use_enable versaloon vsllink) \ |
313 |
- "${myconf[@]}" |
314 |
-} |
315 |
- |
316 |
-src_install() { |
317 |
- default |
318 |
- env -uRESTRICT prepstrip "${ED}"/usr/bin "${ED}"/usr/$(get_libdir) |
319 |
-} |
320 |
|
321 |
diff --git a/dev-embedded/openocd/openocd-0.7.0-r1.ebuild b/dev-embedded/openocd/openocd-0.7.0-r1.ebuild |
322 |
deleted file mode 100644 |
323 |
index 6ea9209b57f..00000000000 |
324 |
--- a/dev-embedded/openocd/openocd-0.7.0-r1.ebuild |
325 |
+++ /dev/null |
326 |
@@ -1,117 +0,0 @@ |
327 |
-# Copyright 1999-2017 Gentoo Foundation |
328 |
-# Distributed under the terms of the GNU General Public License v2 |
329 |
- |
330 |
-EAPI="5" |
331 |
- |
332 |
-inherit eutils multilib flag-o-matic toolchain-funcs |
333 |
- |
334 |
-# One ebuild to rule them all |
335 |
-if [[ ${PV} == *9999 ]] ; then |
336 |
- inherit autotools git-r3 |
337 |
- EGIT_REPO_URI="https://git.code.sf.net/p/${PN}/code" |
338 |
-else |
339 |
- KEYWORDS="~amd64 ~x86" |
340 |
- SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.bz2" |
341 |
-fi |
342 |
- |
343 |
-DESCRIPTION="OpenOCD - Open On-Chip Debugger" |
344 |
-HOMEPAGE="http://openocd.sourceforge.net" |
345 |
- |
346 |
-LICENSE="GPL-2" |
347 |
-SLOT="0" |
348 |
-IUSE="blaster dummy ftd2xx ftdi minidriver parport presto segger stlink usb versaloon verbose-io" |
349 |
-RESTRICT="strip" # includes non-native binaries |
350 |
- |
351 |
-# libftd2xx is the default because it is reported to work better. |
352 |
-DEPEND=">=dev-lang/jimtcl-0.73 |
353 |
- usb? ( virtual/libusb:0 ) |
354 |
- presto? ( dev-embedded/libftd2xx ) |
355 |
- ftd2xx? ( dev-embedded/libftd2xx ) |
356 |
- ftdi? ( dev-embedded/libftdi:= )" |
357 |
-RDEPEND="${DEPEND}" |
358 |
- |
359 |
-REQUIRED_USE="blaster? ( || ( ftdi ftd2xx ) ) ftdi? ( !ftd2xx )" |
360 |
- |
361 |
-src_prepare() { |
362 |
- epatch_user |
363 |
- |
364 |
- if [[ ${PV} == "9999" ]] ; then |
365 |
- sed -i -e "/@include version.texi/d" doc/${PN}.texi || die |
366 |
- AT_NO_RECURSIVE=yes eautoreconf |
367 |
- fi |
368 |
- |
369 |
- # Disable craptastic build settings. |
370 |
- sed -i \ |
371 |
- -e 's:if test "[$]OCDxprefix" != "[$]ac_default_prefix":if false:' \ |
372 |
- configure || die |
373 |
- |
374 |
- if use ftdi ; then |
375 |
- local pc="libftdi$(has_version dev-embedded/libftdi:1 && echo 1)" |
376 |
- # Use libftdi-1 paths #460916 |
377 |
- local libs=$($(tc-getPKG_CONFIG) --libs ${pc}) |
378 |
- sed -i \ |
379 |
- -e "s:-lftdi -lusb:${libs}:" \ |
380 |
- configure src/Makefile.in || die |
381 |
- append-cppflags $($(tc-getPKG_CONFIG) --cflags ${pc}) |
382 |
- fi |
383 |
-} |
384 |
- |
385 |
-src_configure() { |
386 |
- # Here are some defaults |
387 |
- local myconf=( |
388 |
- --enable-buspirate |
389 |
- --enable-ioutil |
390 |
- --disable-werror |
391 |
- --disable-internal-jimtcl |
392 |
- --enable-amtjtagaccel |
393 |
- --enable-ep93xx |
394 |
- --enable-at91rm9200 |
395 |
- --enable-gw16012 |
396 |
- --enable-oocd_trace |
397 |
- --enable-ulink |
398 |
- --enable-arm-jtag-ew |
399 |
- --enable-ti-icdi |
400 |
- --enable-osbdm |
401 |
- --enable-opendous |
402 |
- ) |
403 |
- |
404 |
- if use usb; then |
405 |
- myconf+=( |
406 |
- --enable-usbprog |
407 |
- --enable-jlink |
408 |
- --enable-rlink |
409 |
- --enable-vsllink |
410 |
- --enable-arm-jtag-ew |
411 |
- $(use_enable verbose-io verbose-usb-io) |
412 |
- $(use_enable verbose-io verbose_usb_comms) |
413 |
- ) |
414 |
- fi |
415 |
- |
416 |
- # add explicitely the path to libftd2xx |
417 |
- use ftd2xx && append-ldflags -L/opt/$(get_libdir) |
418 |
- |
419 |
- if use blaster; then |
420 |
- use ftdi && myconf+=( --enable-usb_blaster_libftdi ) |
421 |
- use ftd2xx && myconf+=( --enable-usb_blaster_ftd2xx ) |
422 |
- fi |
423 |
- econf \ |
424 |
- $(use_enable dummy) \ |
425 |
- $(use_enable ftdi ft2232_libftdi) \ |
426 |
- $(use_enable ftdi) \ |
427 |
- $(use_enable ftd2xx ft2232_ftd2xx) \ |
428 |
- $(use_enable minidriver minidriver-dummy) \ |
429 |
- $(use_enable parport) \ |
430 |
- $(use_enable parport parport_ppdev) \ |
431 |
- $(use_enable parport parport_giveio) \ |
432 |
- $(use_enable presto presto_ftd2xx) \ |
433 |
- $(use_enable segger jlink) \ |
434 |
- $(use_enable stlink) \ |
435 |
- $(use_enable versaloon vsllink) \ |
436 |
- $(use_enable verbose-io verbose-jtag-io) \ |
437 |
- "${myconf[@]}" |
438 |
-} |
439 |
- |
440 |
-src_install() { |
441 |
- default |
442 |
- env -uRESTRICT prepstrip "${ED}"/usr/bin "${ED}"/usr/$(get_libdir) |
443 |
-} |
444 |
|
445 |
diff --git a/dev-embedded/openocd/openocd-0.8.0.ebuild b/dev-embedded/openocd/openocd-0.8.0.ebuild |
446 |
deleted file mode 100644 |
447 |
index 637aac7abd1..00000000000 |
448 |
--- a/dev-embedded/openocd/openocd-0.8.0.ebuild |
449 |
+++ /dev/null |
450 |
@@ -1,139 +0,0 @@ |
451 |
-# Copyright 1999-2017 Gentoo Foundation |
452 |
-# Distributed under the terms of the GNU General Public License v2 |
453 |
- |
454 |
-EAPI="5" |
455 |
- |
456 |
-inherit eutils multilib flag-o-matic toolchain-funcs udev user |
457 |
- |
458 |
-# One ebuild to rule them all |
459 |
-if [[ ${PV} == *9999 ]] ; then |
460 |
- inherit autotools git-r3 |
461 |
- EGIT_REPO_URI="https://git.code.sf.net/p/${PN}/code" |
462 |
-else |
463 |
- MY_PV="${PV/_/-}" |
464 |
- MY_P="${PN}-${MY_PV}" |
465 |
- S="${WORKDIR}"/${MY_P} |
466 |
- KEYWORDS="~amd64 ~arm ~x86" |
467 |
- SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${MY_PV}/${MY_P}.tar.gz" |
468 |
-fi |
469 |
- |
470 |
-DESCRIPTION="OpenOCD - Open On-Chip Debugger" |
471 |
-HOMEPAGE="http://openocd.sourceforge.net" |
472 |
- |
473 |
-LICENSE="GPL-2+" |
474 |
-SLOT="0" |
475 |
-IUSE="cmsis-dap dummy ftdi parport +usb verbose-io" |
476 |
-RESTRICT="strip" # includes non-native binaries |
477 |
- |
478 |
-RDEPEND=">=dev-lang/jimtcl-0.75 |
479 |
- cmsis-dap? ( dev-libs/hidapi ) |
480 |
- usb? ( |
481 |
- virtual/libusb:0 |
482 |
- virtual/libusb:1 |
483 |
- ) |
484 |
- ftdi? ( dev-embedded/libftdi:= )" |
485 |
- |
486 |
-DEPEND="${RDEPEND} |
487 |
- virtual/pkgconfig" |
488 |
- |
489 |
-pkg_setup() { |
490 |
- enewgroup plugdev |
491 |
-} |
492 |
- |
493 |
-src_prepare() { |
494 |
- epatch_user |
495 |
- |
496 |
- # jimtcl-0.75 compatibility. Remove it on the |
497 |
- # next version bump |
498 |
- epatch "${FILESDIR}"/${P}-jimtcl-0.75.patch |
499 |
- |
500 |
- if [[ ${PV} == "9999" ]] ; then |
501 |
- AT_NO_RECURSIVE=yes eautoreconf |
502 |
- fi |
503 |
-} |
504 |
- |
505 |
-src_configure() { |
506 |
- # Here are some defaults |
507 |
- local myconf=( |
508 |
- --enable-buspirate |
509 |
- --disable-werror |
510 |
- --disable-internal-jimtcl |
511 |
- --enable-amtjtagaccel |
512 |
- --enable-ep93xx |
513 |
- --enable-at91rm9200 |
514 |
- --enable-gw16012 |
515 |
- --enable-oocd_trace |
516 |
- --enable-arm-jtag-ew |
517 |
- --enable-sysfsgpio |
518 |
- --enable-bcm2835gpio |
519 |
- ) |
520 |
- |
521 |
- # Adapters requiring usb/libusb-1.X support |
522 |
- if use usb; then |
523 |
- myconf+=( |
524 |
- --enable-aice |
525 |
- --enable-usb-blaster-2 |
526 |
- --enable-ftdi |
527 |
- --enable-ti-icdi |
528 |
- --enable-ulink |
529 |
- --enable-osbdm |
530 |
- --enable-opendous |
531 |
- --enable-usbprog |
532 |
- --enable-jlink |
533 |
- --enable-rlink |
534 |
- --enable-stlink |
535 |
- --enable-vsllink |
536 |
- --enable-armjtagew |
537 |
- $(use_enable verbose-io verbose-usb-io) |
538 |
- $(use_enable verbose-io verbose_usb_comms) |
539 |
- ) |
540 |
- else |
541 |
- myconf+=( |
542 |
- --disable-aice |
543 |
- --disable-usb-blaster-2 |
544 |
- --disable-ftdi |
545 |
- --disable-ti-icdi |
546 |
- --disable-ulink |
547 |
- --disable-osbdm |
548 |
- --disable-opendous |
549 |
- --disable-usbprog |
550 |
- --disable-jlink |
551 |
- --disable-rlink |
552 |
- --disable-stlink |
553 |
- --disable-vsllink |
554 |
- --disable-armjtagew |
555 |
- ) |
556 |
- fi |
557 |
- |
558 |
- if use ftdi; then |
559 |
- myconf+=( |
560 |
- --enable-usb_blaster_libftdi |
561 |
- --enable-openjtag_ftdi |
562 |
- --enable-presto_libftdi |
563 |
- ) |
564 |
- else |
565 |
- myconf+=( |
566 |
- --disable-openjtag_ftdi |
567 |
- --disable-presto_libftdi |
568 |
- --disable-usb_blaster_libftdi |
569 |
- ) |
570 |
- fi |
571 |
- |
572 |
- econf \ |
573 |
- $(use_enable dummy) \ |
574 |
- $(use_enable cmsis-dap) \ |
575 |
- $(use_enable parport) \ |
576 |
- $(use_enable parport parport_ppdev) \ |
577 |
- $(use_enable verbose-io verbose-jtag-io) \ |
578 |
- "${myconf[@]}" |
579 |
-} |
580 |
- |
581 |
-src_install() { |
582 |
- default |
583 |
- env -uRESTRICT prepstrip "${ED}"/usr/bin "${ED}"/usr/$(get_libdir) |
584 |
- udev_dorules "${D}"/usr/share/${PN}/contrib/*.rules |
585 |
-} |
586 |
- |
587 |
-pkg_postinst() { |
588 |
- elog "To access openocd devices as user you must be in the plugdev group" |
589 |
-} |