Merge pull request #4435 from thomaseichinger/pr/mulle_serial_port_osx

boards/mulle: mulle boards' serial port is derived from its serial nr
This commit is contained in:
kYc0o 2016-04-20 18:46:31 +02:00
commit ac724f00ba

View File

@ -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),)