summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim A. Misbakh-Soloviov <git@mva.name>2017-09-17 07:20:46 +0700
committerVadim A. Misbakh-Soloviov <git@mva.name>2017-09-17 07:20:46 +0700
commit240bf53b1c41d58acaf6173ad3cdb47ffdd2ec6c (patch)
tree03ca841fde299bf46fd24cb9d9c32336a7a6787b
parentopenocd,rhvoice: fixing URIs, fixing build (diff)
downloadactivehome-240bf53b1c41d58acaf6173ad3cdb47ffdd2ec6c.tar.gz
activehome-240bf53b1c41d58acaf6173ad3cdb47ffdd2ec6c.tar.bz2
activehome-240bf53b1c41d58acaf6173ad3cdb47ffdd2ec6c.zip
openocd: sync with gentoo ebuild
-rw-r--r--dev-embedded/openocd/openocd-9999.ebuild32
1 files changed, 22 insertions, 10 deletions
diff --git a/dev-embedded/openocd/openocd-9999.ebuild b/dev-embedded/openocd/openocd-9999.ebuild
index b87671a..5f112f4 100644
--- a/dev-embedded/openocd/openocd-9999.ebuild
+++ b/dev-embedded/openocd/openocd-9999.ebuild
@@ -12,13 +12,13 @@ HOMEPAGE="http://openocd.sourceforge.net"
LICENSE="GPL-2+"
SLOT="0"
-IUSE="cmsis-dap dummy ftdi parport +usb verbose-io"
+IUSE="+cmsis-dap dummy +ftdi +jlink parport +usb verbose-io"
RESTRICT="strip" # includes non-native binaries
RDEPEND="
>=dev-lang/jimtcl-0.76
- >=dev-embedded/libjaylink-0.1.0
cmsis-dap? ( dev-libs/hidapi )
+ jlink? ( >=dev-embedded/libjaylink-0.1.0 )
usb? (
virtual/libusb:0
virtual/libusb:1
@@ -49,7 +49,6 @@ src_configure() {
--enable-ep93xx
--enable-at91rm9200
--enable-gw16012
- --enable-oocd_trace
--enable-arm-jtag-ew
--enable-sysfsgpio
--enable-bcm2835gpio
@@ -66,7 +65,6 @@ src_configure() {
--enable-osbdm
--enable-opendous
--enable-usbprog
- --enable-jlink
--enable-rlink
--enable-stlink
--enable-vsllink
@@ -92,17 +90,27 @@ src_configure() {
)
fi
+ if use jlink; then
+ myconf+=(
+ --enable-jlink
+ )
+ else
+ myconf+=(
+ --disable-jlink
+ )
+ fi
+
if use ftdi; then
myconf+=(
- --enable-usb_blaster_libftdi
- --enable-openjtag_ftdi
- --enable-presto_libftdi
+ --enable-usb_blaster
+ --enable-openjtag
+ --enable-presto
)
else
myconf+=(
- --disable-openjtag_ftdi
- --disable-presto_libftdi
- --disable-usb_blaster_libftdi
+ --disable-openjtag
+ --disable-presto
+ --disable-usb_blaster
)
fi
@@ -120,3 +128,7 @@ src_install() {
env -uRESTRICT prepstrip "${ED}"/usr/bin
udev_dorules ${D}/usr/share/${PN}/contrib/*.rules
}
+
+pkg_postinst() {
+ elog "To access openocd devices as user you must be in the plugdev group"
+}