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)
|
ifeq ($(OS),Linux)
|
||||||
PORT ?= /dev/ttyACM0
|
PORT ?= /dev/ttyACM0
|
||||||
FLASHER = avrdude
|
FLASHER = avrdude
|
||||||
#else ifeq ($(OS),Darwin)
|
else ifeq ($(OS),Darwin)
|
||||||
# PORT ?=
|
PORT ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
||||||
# FLASHER =
|
FLASHER = avrdude
|
||||||
else
|
else
|
||||||
$(info CAUTION: No flash tool for your host system found!)
|
$(info CAUTION: No flash tool for your host system found!)
|
||||||
# TODO: fix for building under windows/MacOS
|
# TODO: fix for building under windows
|
||||||
endif
|
endif
|
||||||
export FLASHER
|
export FLASHER
|
||||||
export PORT
|
export PORT
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user