Merge pull request #5014 from kYc0o/avr_on_macosx

boards/arduino-mega2560: add support to flash it on mac osx
This commit is contained in:
Hauke Petersen 2016-03-10 13:09:59 +01:00
commit 5e3f6f52db

View File

@ -18,12 +18,12 @@ OS = $(shell uname)
ifeq ($(OS),Linux)
PORT ?= /dev/ttyACM0
FLASHER = avrdude
#else ifeq ($(OS),Darwin)
# PORT ?=
# FLASHER =
else ifeq ($(OS),Darwin)
PORT ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
FLASHER = avrdude
else
$(info CAUTION: No flash tool for your host system found!)
# TODO: fix for building under windows/MacOS
# TODO: fix for building under windows
endif
export FLASHER
export PORT