public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/rpi-openocd/
@ 2025-06-19 12:44 Manuel
  0 siblings, 0 replies; 2+ messages in thread
From: Manuel @ 2025-06-19 12:44 UTC (permalink / raw
  To: gentoo-commits

commit:     b1e9a30524941dcb3ba361d1311522a7e8d3f748
Author:     Manuel <ljn0099 <AT> hotmail <DOT> com>
AuthorDate: Thu Jun 19 12:44:02 2025 +0000
Commit:     Manuel <ljn0099 <AT> hotmail <DOT> com>
CommitDate: Thu Jun 19 12:44:02 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b1e9a305

dev-embedded/rpi-openocd: new package, add 9999

Signed-off-by: Manuel <ljn0099 <AT> hotmail.com>

 dev-embedded/rpi-openocd/metadata.xml            |  22 +++++
 dev-embedded/rpi-openocd/rpi-openocd-9999.ebuild | 102 +++++++++++++++++++++++
 2 files changed, 124 insertions(+)

diff --git a/dev-embedded/rpi-openocd/metadata.xml b/dev-embedded/rpi-openocd/metadata.xml
new file mode 100644
index 0000000000..838745ed0c
--- /dev/null
+++ b/dev-embedded/rpi-openocd/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>ljn0099@hotmail.com</email>
+		<name>Manuel</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">raspberrypi/openocd</remote-id>
+	</upstream>
+	<use>
+		<flag name="capstone">Support for ARM disassembly via dev-libs/capstone</flag>
+		<flag name="cmsis-dap">Support for CMSIS-DAP adapter driver via dev-libs/hidapi</flag>
+		<flag name="dummy">Build the dummy port driver</flag>
+		<flag name="ftdi">Support for USB FTDI chips via dev-embedded/libftdi</flag>
+		<flag name="gpiod">Support for linuxgpiod driver via dev-libs/libgpiod</flag>
+		<flag name="jlink">Support for J-Link driver via dev-embedded/libjaylink</flag>
+		<flag name="parport">Support for parport JTAG devices</flag>
+		<flag name="verbose-io">Verbose IO and comm JTAG and USB messages</flag>
+		<flag name="usb">Support for the USB-based drivers</flag>
+	</use>
+</pkgmetadata>

diff --git a/dev-embedded/rpi-openocd/rpi-openocd-9999.ebuild b/dev-embedded/rpi-openocd/rpi-openocd-9999.ebuild
new file mode 100644
index 0000000000..c2cb0ea939
--- /dev/null
+++ b/dev-embedded/rpi-openocd/rpi-openocd-9999.ebuild
@@ -0,0 +1,102 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools git-r3 udev
+
+DESCRIPTION="OpenOCD - Open On-Chip Debugger (Raspberry Pi Fork)"
+HOMEPAGE="https://github.com/raspberrypi/openocd"
+
+EGIT_REPO_URI="https://github.com/raspberrypi/openocd.git"
+EGIT_BRANCH="rpi-common"
+EGIT_SUBMODULES=()
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE="capstone +cmsis-dap dummy +ftdi gpiod +jlink parport +usb verbose-io"
+RESTRICT="strip"
+
+DEPEND="
+	acct-group/plugdev
+	>=dev-lang/jimtcl-0.79
+	capstone? ( dev-libs/capstone )
+	cmsis-dap? ( dev-libs/hidapi )
+	ftdi? ( dev-embedded/libftdi:= )
+	gpiod? ( dev-libs/libgpiod:0/2 )
+	jlink? ( >=dev-embedded/libjaylink-0.2.0 )
+	usb? ( virtual/libusb:1 )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+	default
+
+	AT_NO_RECURSIVE=yes eautoreconf
+}
+
+src_configure() {
+	local myconf=(
+		--program-prefix=rpi-
+		--enable-amtjtagaccel
+		--enable-am335xgpio
+		--enable-arm-jtag-ew
+		--enable-at91rm9200
+		--enable-bcm2835gpio
+		--enable-buspirate
+		--enable-ep93xx
+		--enable-gw16012
+		--enable-jtag_dpi
+		--enable-sysfsgpio
+		--enable-vdebug
+		--disable-internal-jimtcl
+		--disable-internal-libjaylink
+		--disable-parport-giveio
+		--disable-werror
+		$(use_with capstone)
+		$(use_enable cmsis-dap)
+		$(use_enable dummy)
+		$(use_enable ftdi openjtag)
+		$(use_enable ftdi presto)
+		$(use_enable ftdi usb-blaster)
+		$(use_enable gpiod linuxgpiod)
+		$(use_enable jlink)
+		$(use_enable parport)
+		$(use_enable parport parport_ppdev)
+		$(use_enable usb aice)
+		$(use_enable usb armjtagew)
+		$(use_enable usb ftdi)
+		$(use_enable usb osbdm)
+		$(use_enable usb opendous)
+		$(use_enable usb rlink)
+		$(use_enable usb stlink)
+		$(use_enable usb ti-icdi)
+		$(use_enable usb usbprog)
+		$(use_enable usb usb-blaster-2)
+		$(use_enable usb ulink)
+		$(use_enable usb vsllink)
+		$(use_enable verbose-io verbose-jtag-io)
+		$(use_enable verbose-io verbose-usb-io)
+		$(use_enable verbose-io verbose_usb_comms)
+	)
+
+	econf "${myconf[@]}"
+}
+
+src_install() {
+	default
+	dostrip /usr/bin
+	udev_dorules "${ED}"/usr/share/openocd/contrib/*.rules
+}
+
+pkg_postinst() {
+	udev_reload
+
+	elog "To access openocd devices as user you must be in the plugdev group"
+	elog "Installed as rpi-openocd"
+}
+
+pkg_postrm() {
+	udev_reload
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/rpi-openocd/
@ 2025-06-19 15:56 Manuel
  0 siblings, 0 replies; 2+ messages in thread
From: Manuel @ 2025-06-19 15:56 UTC (permalink / raw
  To: gentoo-commits

commit:     3e4b606f79c78f5aa7e857e0ce39a6190d78ca7e
Author:     Manuel <ljn0099 <AT> hotmail <DOT> com>
AuthorDate: Thu Jun 19 15:56:13 2025 +0000
Commit:     Manuel <ljn0099 <AT> hotmail <DOT> com>
CommitDate: Thu Jun 19 15:56:13 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3e4b606f

dev-embedded/rpi-openocd:

Signed-off-by: Manuel <ljn0099 <AT> hotmail.com>

Changed package prefixes to avoid conflict with dev-embedded/openocd.

 dev-embedded/rpi-openocd/rpi-openocd-9999.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/dev-embedded/rpi-openocd/rpi-openocd-9999.ebuild b/dev-embedded/rpi-openocd/rpi-openocd-9999.ebuild
index c2cb0ea939..d28770dfc0 100644
--- a/dev-embedded/rpi-openocd/rpi-openocd-9999.ebuild
+++ b/dev-embedded/rpi-openocd/rpi-openocd-9999.ebuild
@@ -39,6 +39,9 @@ src_prepare() {
 src_configure() {
 	local myconf=(
 		--program-prefix=rpi-
+		--datadir=/usr/share/openocd-rpi
+		--infodir=/usr/share/info/rpi-openocd
+		--docdir=/usr/share/doc/rpi-openocd
 		--enable-amtjtagaccel
 		--enable-am335xgpio
 		--enable-arm-jtag-ew
@@ -87,7 +90,11 @@ src_configure() {
 src_install() {
 	default
 	dostrip /usr/bin
-	udev_dorules "${ED}"/usr/share/openocd/contrib/*.rules
+
+	mv "${ED}/usr/share/openocd-rpi/openocd/contrib/60-openocd.rules" \
+		"${ED}/usr/share/openocd-rpi/openocd/contrib/60-openocd-rpi.rules" || die
+
+	udev_dorules "${ED}"/usr/share/openocd-rpi/openocd/contrib/*.rules
 }
 
 pkg_postinst() {


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-19 15:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-19 12:44 [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/rpi-openocd/ Manuel
  -- strict thread matches above, loose matches on Subject: below --
2025-06-19 15:56 Manuel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox