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:
commit
5e3f6f52db
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user