1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-31 09:21:19 +01:00

boards/mulle: Add fallback for PORT

Fixes a problem with make buildtest if TARGET=mulle and no USB serial device connected:

    $ make buildtest
    Warning: no PORT set!
    Building for Warning: .. failed
    .../riot/Makefile.include:110: *** The specified board Warning: does not exist..  Stop.
    .../riot/Makefile.include:110: *** The specified board Warning: does not exist..  Stop.
    Building for no (no linking) .. failed
    .../riot/Makefile.include:110: *** The specified board no does not exist..  Stop.
    .../riot/Makefile.include:110: *** The specified board no does not exist..  Stop.
    Building for PORT .. failed
    .../riot/Makefile.include:110: *** The specified board PORT does not exist..  Stop.
    .../riot/Makefile.include:110: *** The specified board PORT does not exist..  Stop.
    Building for set! .. failed
    .../riot/Makefile.include:110: *** The specified board set! does not exist..  Stop.
    .../riot/Makefile.include:110: *** The specified board set! does not exist..  Stop.
    Building for airfy-beacon (no linking) .. ^C
This commit is contained in:
Joakim Gebart 2015-07-10 10:58:22 +02:00
parent d15f0990b3
commit eff9338e2a

View File

@ -85,6 +85,10 @@ ifeq ($(PORT),)
PORT := $(shell ls -1 /dev/tty.usbserial* | head -n 1)
endif
endif
ifeq ($(PORT),)
# fall back to a sensible default
PORT := /dev/ttyUSB0
endif
# We need special handling of the watchdog if we want to speed up the flash
# verification by using the MCU to compute the image checksum after flashing.