1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-16 01:53:51 +01:00

boards/arduino-mega2560: add support to flash it on mac osx

This commit is contained in:
kYc0o 2016-03-09 15:15:18 +01:00
parent 1c260c2228
commit c0d28f3f87

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