From d25fb8a8a8d9dae66869ba3a44f9c45160ea6259 Mon Sep 17 00:00:00 2001 From: Thomas Eichinger <thomas.eichinger1@gmail.com> Date: Tue, 8 Dec 2015 11:07:11 +0100 Subject: [PATCH] boards/mulle: mulle boards' serial port is derived from its serial nr --- boards/mulle/Makefile.include | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/boards/mulle/Makefile.include b/boards/mulle/Makefile.include index 49392d7cee..abfaf433a0 100644 --- a/boards/mulle/Makefile.include +++ b/boards/mulle/Makefile.include @@ -82,7 +82,11 @@ ifeq ($(PORT),) PORT := $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh) endif else ifeq ($(OS),Darwin) - PORT := $(firstword $(sort $(wildcard /dev/tty.usbserial*))) + ifneq ($(PROGRAMMER_SERIAL),) + PORT := /dev/tty.usbserial-$(PROGRAMMER_SERIAL)B + else + PORT := $(firstword $(sort $(wildcard /dev/tty.usbserial*))) + endif endif endif ifeq ($(PORT),) -- GitLab