boards/mulle: mulle boards' serial port is derived from its serial nr

This commit is contained in:
Thomas Eichinger 2015-12-08 11:07:11 +01:00
parent ceab9bd9c3
commit d25fb8a8a8

View File

@ -82,7 +82,11 @@ ifeq ($(PORT),)
PORT := $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh) PORT := $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh)
endif endif
else ifeq ($(OS),Darwin) 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
endif endif
ifeq ($(PORT),) ifeq ($(PORT),)