From 00f5bce08e27b768dd246cb65340b2f92fdbbe1c Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Mon, 8 Dec 2025 09:35:54 -0800 Subject: [PATCH] add: arduino-remoteocd (#8181) (#8189) --- anda/tools/arduino-remoteocd/anda.hcl | 5 ++ .../arduino-remoteocd/arduino-remoteocd.spec | 56 +++++++++++++++++++ anda/tools/arduino-remoteocd/update.rhai | 5 ++ 3 files changed, 66 insertions(+) create mode 100644 anda/tools/arduino-remoteocd/anda.hcl create mode 100644 anda/tools/arduino-remoteocd/arduino-remoteocd.spec create mode 100644 anda/tools/arduino-remoteocd/update.rhai diff --git a/anda/tools/arduino-remoteocd/anda.hcl b/anda/tools/arduino-remoteocd/anda.hcl new file mode 100644 index 0000000000..39346fd159 --- /dev/null +++ b/anda/tools/arduino-remoteocd/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "arduino-remoteocd.spec" + } +} diff --git a/anda/tools/arduino-remoteocd/arduino-remoteocd.spec b/anda/tools/arduino-remoteocd/arduino-remoteocd.spec new file mode 100644 index 0000000000..cf8852538c --- /dev/null +++ b/anda/tools/arduino-remoteocd/arduino-remoteocd.spec @@ -0,0 +1,56 @@ +%global goipath github.com/arduino/remoteocd + +%global commit 6e375c835fe319e8eef3f40578bf8de044156ce1 +%global commit_date 20251105 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Version: 0^%commit_date.%shortcommit + +%gometa -f + +Name: remoteocd +Release: 1%?dist +Summary: Flexible firmware flashing for the Arduino UNO Q Microcontroller +License: GPL-3.0-only + +URL: https://github.com/arduino/remoteocd +Source: %{gosource} +BuildRequires: anda-srpm-macros +BuildRequires: go-rpm-macros +BuildRequires: go-task + +Provides: arduino-remoteocd + +Recommends: arduino-cli + +Packager: Owen Zimmerman + +%description +remoteocd is a specialized utility designed to manage firmware deployment for the Arduino UNO Q board. This tool acts as a versatile wrapper for OpenOCD (Open On-Chip Debugger), allowing you to flash a binary onto the MCU using one of three transparently handled modes: + + Local, by flashing from the UNO Q's MPU (Linux) environment. + ADB over USB. + SSH over a remote pc. + +remoteocd is part of the arduino:zephyr:unoq platform. + +%gopkg + +%prep +%goprep -A + +%build +%define gomodulesmode GO111MODULE=on +%gobuild + +%install +install -Dm755 remoteocd %{buildroot}%{_bindir}/remoteocd + +%files +%license LICENSE +%doc README.md +%{_bindir}/remoteocd + +%changelog +* Mon Dec 08 2025 Owen Zimmerman +- Initial commit diff --git a/anda/tools/arduino-remoteocd/update.rhai b/anda/tools/arduino-remoteocd/update.rhai new file mode 100644 index 0000000000..750cba9c53 --- /dev/null +++ b/anda/tools/arduino-remoteocd/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("arduino/remoteocd")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +}