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

Gaƫtan Harter notifications at github.com
Fri Jun 14 15:50:35 CEST 2019


### Contribution description

Update to use FLASHFILE as file to be flashed on the board.


### Testing procedure

You can flash on a board using bossa.

```
BOSSA_BOARDS=$(git grep -l -e tools/bossa.inc.mk -e common/arduino-due -e common/arduino-mkr '*' ':!boards/common'  | cut -f 2 -d/ | sort -u)
echo ${BOSSA_BOARDS} 
arduino-due arduino-mkr1000 arduino-mkrfox1200 arduino-mkrzero feather-m0 sensebox_samd21 sodaq-autonomo sodaq-explorer sodaq-one sodaq-sara-aff udoo
```

### Testing without a board


The flash command is still the same with this PR and with master
Here `PREFLASHER` must be updated otherwise it tries to use a board that is not there.

<details><summary><code>for board in ${BOSSA_BOARDS}; do echo ${board}; FLASHFILE=lala BOARD=${board} make --no-print-directory -C examples/hello-world/ FLASHER=true PREFLASHER=true flash-only; done</code></summary><p>

```
for board in ${BOSSA_BOARDS}; do echo ${board}; FLASHFILE=lala BOARD=${board} make --no-print-directory -C examples/hello-world/ FLASHER=true PREFLASHER=true flash-only; done
arduino-due
true -F /dev/ttyACM0 raw ispeed 1200 ospeed 1200 cs8 -cstopb ignpar eol 255 eof 255
true -p /dev/ttyACM0 -e -i -w -v -b -R /home/harter/work/git/RIOT/examples/hello-world/bin/arduino-due/hello-world.bin
arduino-mkr1000
true -p /dev/ttyACM0 -e -i -w -v -b -R /home/harter/work/git/RIOT/examples/hello-world/bin/arduino-mkr1000/hello-world.bin
arduino-mkrfox1200
true -p /dev/ttyACM0 -e -i -w -v -b -R /home/harter/work/git/RIOT/examples/hello-world/bin/arduino-mkrfox1200/hello-world.bin
arduino-mkrzero
true -p /dev/ttyACM0 -e -i -w -v -b -R /home/harter/work/git/RIOT/examples/hello-world/bin/arduino-mkrzero/hello-world.bin
feather-m0
true -p /dev/ttyACM0 -e -i -w -v -b -R /home/harter/work/git/RIOT/examples/hello-world/bin/feather-m0/hello-world.bin
sensebox_samd21
true -p /dev/ttyACM0 -e -i -w -v -b -R /home/harter/work/git/RIOT/examples/hello-world/bin/sensebox_samd21/hello-world.bin
sodaq-autonomo
true -p /dev/ttyACM0 -e -i -w -v -b -R /home/harter/work/git/RIOT/examples/hello-world/bin/sodaq-autonomo/hello-world.bin
sodaq-explorer
true -p /dev/ttyACM0 -e -i -w -v -b -R /home/harter/work/git/RIOT/examples/hello-world/bin/sodaq-explorer/hello-world.bin
sodaq-one
true -p /dev/ttyACM0 -e -i -w -v -b -R /home/harter/work/git/RIOT/examples/hello-world/bin/sodaq-one/hello-world.bin
sodaq-sara-aff
true -p /dev/ttyACM0 -e -i -w -v -b -R /home/harter/work/git/RIOT/examples/hello-world/bin/sodaq-sara-aff/hello-world.bin
udoo
true -F /dev/ttyACM0 raw ispeed 1200 ospeed 1200 cs8 -cstopb ignpar eol 255 eof 255
true -p /dev/ttyACM0 -e -i -w -v -b -R /home/harter/work/git/RIOT/examples/hello-world/bin/udoo/hello-world.bin
```

</p></details>

And the file to flash can be overwritten from environment

<details><summary><code>for board in ${BOSSA_BOARDS}; do echo ${board}; FLASHFILE=lala BOARD=${board} make --no-print-directory -C examples/hello-world/ FLASHER=true PREFLASHER=true flash-only; done</code></summary><p>

```
for board in ${BOSSA_BOARDS}; do echo ${board}; FLASHFILE=lala BOARD=${board} make --no-print-directory -C examples/hello-world/ FLASHER=true PREFLASHER=true flash-only; done
arduino-due
true -F /dev/ttyACM0 raw ispeed 1200 ospeed 1200 cs8 -cstopb ignpar eol 255 eof 255
true -p /dev/ttyACM0 -e -i -w -v -b -R lala
arduino-mkr1000
true -p /dev/ttyACM0 -e -i -w -v -b -R lala
arduino-mkrfox1200
true -p /dev/ttyACM0 -e -i -w -v -b -R lala
arduino-mkrzero
true -p /dev/ttyACM0 -e -i -w -v -b -R lala
feather-m0
true -p /dev/ttyACM0 -e -i -w -v -b -R lala
sensebox_samd21
true -p /dev/ttyACM0 -e -i -w -v -b -R lala
sodaq-autonomo
true -p /dev/ttyACM0 -e -i -w -v -b -R lala
sodaq-explorer
true -p /dev/ttyACM0 -e -i -w -v -b -R lala
sodaq-one
true -p /dev/ttyACM0 -e -i -w -v -b -R lala
sodaq-sara-aff
true -p /dev/ttyACM0 -e -i -w -v -b -R lala
udoo
true -F /dev/ttyACM0 raw ispeed 1200 ospeed 1200 cs8 -cstopb ignpar eol 255 eof 255
true -p /dev/ttyACM0 -e -i -w -v -b -R lala
```
</p></details>


### Issues/PRs references

Part of https://github.com/RIOT-OS/RIOT/pull/8838
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/11700

-- Commit Summary --

  * makefiles/bossa.inc.mk: use FLASHFILE

-- File Changes --

    M makefiles/tools/bossa.inc.mk (5)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/11700.patch
https://github.com/RIOT-OS/RIOT/pull/11700.diff

-- 
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/11700
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190614/1ca453a3/attachment.html>


More information about the notifications mailing list