Skip to content

Commit 0e8e997

Browse files
sergiotomasellocmaglie
authored andcommitted
upd: update with silent installation in case of obsolete openocd
upd: optimization openocd version control upd: optimization of openocd (mips) installation procedure
1 parent 280d92d commit 0e8e997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ tools.avrdude.upload.params.quiet=-q -q
126126
tools.avrdude.upload.params.noverify=-V
127127
tools.avrdude.upload.pattern="{cmd}" "-C{config.path}" {upload.verbose} -p{build.emu.mcu} -c{upload.protocol} -P{serial.port} -b{upload.speed} "-Uflash:w:{build.path}/{build.project_name}.hex:i"
128128

129-
tools.avrdude_remote.upload.pattern="openocd --version 2>&1 | grep 2017 && /usr/bin/run-avrdude /tmp/sketch.hex || echo Can't upload; update your Tian first 1>&2; exit 1"
129+
tools.avrdude_remote.upload.pattern="openocd --version 2>&1 | grep 2016 && if opkg update; then opkg upgrade openocd; exit 1; else echo 'Please connect your board to the Internet in order to upgrade tools' >&2; exit 1; fi || /usr/bin/run-avrdude /tmp/sketch.hex"
130130

131131
#
132132
# BOSSA

0 commit comments

Comments
 (0)