[riot-notifications] [RIOT-OS/RIOT] makefiles/openocd.inc.mk: use FLASHFILE (#11254)

Gaƫtan Harter notifications at github.com
Mon Mar 25 09:32:50 CET 2019


When setting FLASHFILE to another value from environment, like `$(BINFILE)` it is correctly taken into account. Except with the 'spark-core' and 'thingy52' but they do not flash with `openocd`.

```
for board in ${OPENOCD_BOARDS}; do echo ${board}; FLASHFILE='$(BINFILE)' BOARD=${board} PROGRAMMER=openocd make -C examples/hello-world/ --no-print-directory FLASHER=true flash-only; done
```

<details><summary>wdiff output_master output_pr</summary>
<p>

```
acd52832
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/acd52832/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/acd52832/hello-world.bin+}
airfy-beacon
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/airfy-beacon/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/airfy-beacon/hello-world.bin+}
arduino-zero
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/arduino-zero/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/arduino-zero/hello-world.bin+}
b-l072z-lrwan1
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/b-l072z-lrwan1/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/b-l072z-lrwan1/hello-world.bin+}
b-l475e-iot01a
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/b-l475e-iot01a/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/b-l475e-iot01a/hello-world.bin+}
blackpill
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/blackpill/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/blackpill/hello-world.bin+}
bluepill
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/bluepill/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/bluepill/hello-world.bin+}
calliope-mini
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/calliope-mini/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/calliope-mini/hello-world.bin+}
ek-lm4f120xl
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/ek-lm4f120xl/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/ek-lm4f120xl/hello-world.bin+}
fox
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/fox/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/fox/hello-world.bin+}
frdm-k22f
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/frdm-k22f/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/frdm-k22f/hello-world.bin+}
frdm-k64f
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/frdm-k64f/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/frdm-k64f/hello-world.bin+}
frdm-kw41z
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/frdm-kw41z/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/frdm-kw41z/hello-world.bin+}
hifive1
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/hifive1/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/hifive1/hello-world.bin+}
iotlab-a8-m3
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/iotlab-a8-m3/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/iotlab-a8-m3/hello-world.bin+}
iotlab-m3
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/iotlab-m3/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/iotlab-m3/hello-world.bin+}
limifrog-v1
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/limifrog-v1/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/limifrog-v1/hello-world.bin+}
maple-mini
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/maple-mini/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/maple-mini/hello-world.bin+}
microbit
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/microbit/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/microbit/hello-world.bin+}
msbiot
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/msbiot/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/msbiot/hello-world.bin+}
mulle
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/mulle/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/mulle/hello-world.bin+}
nrf51dk
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/nrf51dk/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/nrf51dk/hello-world.bin+}
nrf51dongle
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/nrf51dongle/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/nrf51dongle/hello-world.bin+}
nrf52832-mdk
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/nrf52832-mdk/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/nrf52832-mdk/hello-world.bin+}
nrf52840-mdk
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/nrf52840-mdk/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/nrf52840-mdk/hello-world.bin+}
nrf6310
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/nrf6310/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/nrf6310/hello-world.bin+}
pba-d-01-kw2x
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/pba-d-01-kw2x/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/pba-d-01-kw2x/hello-world.bin+}
phynode-kw41z
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/phynode-kw41z/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/phynode-kw41z/hello-world.bin+}
reel
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/reel/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/reel/hello-world.bin+}
samd21-xpro
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/samd21-xpro/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/samd21-xpro/hello-world.bin+}
saml10-xpro
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/saml10-xpro/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/saml10-xpro/hello-world.bin+}
saml11-xpro
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/saml11-xpro/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/saml11-xpro/hello-world.bin+}
saml21-xpro
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/saml21-xpro/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/saml21-xpro/hello-world.bin+}
samr21-xpro
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/samr21-xpro/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/samr21-xpro/hello-world.bin+}
samr30-xpro
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/samr30-xpro/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/samr30-xpro/hello-world.bin+}
seeeduino_arch-pro
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/seeeduino_arch-pro/hello-world.hex-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/seeeduino_arch-pro/hello-world.bin+}
spark-core
true -d 1d50:607f -a 0 -s 0x08005000:leave -D "/home/harter/work/git/RIOT/examples/hello-world/bin/spark-core/hello-world.bin"
stm32f0discovery
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/stm32f0discovery/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/stm32f0discovery/hello-world.bin+}
stm32f3discovery
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/stm32f3discovery/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/stm32f3discovery/hello-world.bin+}
stm32f429i-disc1
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/stm32f429i-disc1/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/stm32f429i-disc1/hello-world.bin+}
stm32f4discovery
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/stm32f4discovery/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/stm32f4discovery/hello-world.bin+}
stm32f769i-disco
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/stm32f769i-disco/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/stm32f769i-disco/hello-world.bin+}
stm32l476g-disco
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/stm32l476g-disco/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/stm32l476g-disco/hello-world.bin+}
thingy52
/home/harter/work/git/RIOT/boards/common/nrf52/Makefile.include:32: *** Cannot use OpenOCD with thingy52 board.  Stop.
ublox-c030-u201
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/ublox-c030-u201/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/ublox-c030-u201/hello-world.bin+}
usb-kw41z
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/usb-kw41z/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/usb-kw41z/hello-world.bin+}
yunjia-nrf51822
true flash [-/home/harter/work/git/RIOT/examples/hello-world/bin/yunjia-nrf51822/hello-world.elf-] {+/home/harter/work/git/RIOT/examples/hello-world/bin/yunjia-nrf51822/hello-world.bin+}
```

</p>
</details>

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11254#issuecomment-476099797
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190325/9f21be63/attachment-0001.html>


More information about the notifications mailing list