[riot-notifications] [RIOT-OS/RIOT] boards/mspdebug: use FLASHFILE for boards using mspdebug (#11708)

Gaƫtan Harter notifications at github.com
Mon Jun 17 18:09:21 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 `mspdebug`.

```
MSPDEBUG_BOARDS=$(git grep -l -e  mspdebug -e common/msb-430 -e common/wsn430 '*' ':!boards/common' | cut -f 2 -d/ | sort -u)
echo ${MSPDEBUG_BOARDS} 
chronos msb-430 msb-430h wsn430-v1_3b wsn430-v1_4
```

### Testing without a board


The output of the FFLAGS is the same on master and this PR.

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

```
for board in ${MSPDEBUG_BOARDS}; do echo ${board}; BOARD=${board} make --no-print-directory -C examples/hello-world/ FLASHER=true flash-only; done
chronos
true rf2500 "prog /home/harter/work/git/RIOT/examples/hello-world/bin/chronos/hello-world.hex"
msb-430
true -j olimex "prog /home/harter/work/git/RIOT/examples/hello-world/bin/msb-430/hello-world.hex"
msb-430h
true -j olimex "prog /home/harter/work/git/RIOT/examples/hello-world/bin/msb-430h/hello-world.hex"
wsn430-v1_3b
true -d /dev/ttyUSB0 -j uif "prog /home/harter/work/git/RIOT/examples/hello-world/bin/wsn430-v1_3b/hello-world.hex"
wsn430-v1_4
true -d /dev/ttyUSB0 -j uif "prog /home/harter/work/git/RIOT/examples/hello-world/bin/wsn430-v1_4/hello-world.hex"
```

</p></details>

And the value can be changed from environment variable:

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

```
for board in ${MSPDEBUG_BOARDS}; do echo ${board}; FLASHFILE=toto BOARD=${board} make --no-print-directory -C examples/hello-world/ FLASHER=true flash-only; done
chronos
true rf2500 "prog toto"
msb-430
true -j olimex "prog toto"
msb-430h
true -j olimex "prog toto"
wsn430-v1_3b
true -d /dev/ttyUSB0 -j uif "prog toto"
wsn430-v1_4
true -d /dev/ttyUSB0 -j uif "prog toto"
```
</p></details>

### Issues/PRs references

Part of #8838
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * boards/mspdebug: use FLASHFILE for boards using mspdebug

-- File Changes --

    M boards/chronos/Makefile.include (3)
    M boards/common/msb-430/Makefile.include (3)
    M boards/common/wsn430/Makefile.include (3)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/11708.patch
https://github.com/RIOT-OS/RIOT/pull/11708.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/11708
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190617/66227de1/attachment.html>


More information about the notifications mailing list