File tree Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ REPO_URL=" https://github.com/bcmi-labs/orchestrator.git"
4+ BRANCH_NAME=" main"
5+
6+ set -xe
7+
8+ TMP_DIR=$( mktemp -d)
9+
10+ # pull the repo
11+ git clone " $REPO_URL " " $TMP_DIR "
12+ cd " $TMP_DIR "
13+ git checkout " $BRANCH_NAME "
14+
15+ # compile remoteocd
16+ go build -o build/remoteocd ./cmd/remoteocd
17+
18+ # move into arduino tools
19+ TARGET_PATH=$( arduino-cli config get directories.data) /packages/arduino/tools/remoteocd/0.0.1
20+ mkdir -p " $TARGET_PATH "
21+ cp build/remoteocd " $TARGET_PATH "
22+
23+ rm -rf " $TMP_DIR "
24+
25+ echo " remoteocd is in $TARGET_PATH /remoteocd"
Original file line number Diff line number Diff line change 3838 },
3939 {
4040 "name" : " NXP FRDM RW612"
41+ },
42+ {
43+ "name" : " Arduino UNO Q"
4144 }
4245 ],
4346 "toolsDependencies" : [
6568 "packager" : " arduino" ,
6669 "name" : " sync-zephyr-artifacts" ,
6770 "version" : " 0.1.0"
71+ },
72+ {
73+ "packager" : " arduino" ,
74+ "name" : " adb" ,
75+ "version" : " 32.0.0"
76+ },
77+ {
78+ "packager" : " arduino" ,
79+ "name" : " remoteocd" ,
80+ "version" : " 0.0.3-rc.2"
6881 }
6982 ]
7083 }
Original file line number Diff line number Diff line change @@ -262,6 +262,20 @@ tools.adb.upload.params.verbose=-v
262262tools.adb.upload.params.quiet=
263263tools.adb.upload.pattern="{path}/{cmd}" push "{build.path}/{build.project_name}.elf" "/tmp/arduino/m4-user-sketch.elf"
264264
265+ #
266+ # REMOTEOCD
267+ #
268+ tools.remoteocd.path={runtime.tools.remoteocd.path}
269+ tools.remoteocd.cmd=remoteocd
270+ tools.remoteocd.upload.params.verbose=
271+ tools.remoteocd.upload.params.quiet=
272+ tools.remoteocd.upload.pattern="{path}/{cmd}" --adb-path {runtime.tools.adb.path}/adb -s "{upload.port.properties.serialNumber}" upload -a "{upload.address}" "{build.path}/{build.project_name}.{upload.extension}"
273+
274+ tools.remoteocd.bootloader.params.verbose=
275+ tools.remoteocd.bootloader.params.quiet=
276+ tools.remoteocd.erase.pattern=
277+ tools.remoteocd.bootloader.pattern="{path}/{cmd}" --adb-path {runtime.tools.adb.path}/adb -s "{upload.port.properties.serialNumber}" upload "{runtime.platform.path}/firmwares/{bootloader.file}"
278+
265279#
266280# PYOCD WRAPPER
267281#
You can’t perform that action at this time.
0 commit comments