From eff9338e2a9a3ccb0510bb195cce5aa5847c4d25 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Fri, 10 Jul 2015 10:58:22 +0200 Subject: [PATCH] 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 --- boards/mulle/Makefile.include | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boards/mulle/Makefile.include b/boards/mulle/Makefile.include index d9fe3826e6..9fa9489a41 100644 --- a/boards/mulle/Makefile.include +++ b/boards/mulle/Makefile.include @@ -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.