build: Adding a check for Darwin when adding avrdude.conf's flag for uploading.

This commit is contained in:
Michael Woods 2013-06-13 16:24:34 -04:00 committed by Andrew Tridgell
parent 6187c66147
commit 1c17bed1ef

View File

@ -94,6 +94,10 @@ endif
ifneq ($(findstring MINGW, $(SYSTYPE)),)
USERAVRDUDEFLAGS := -C $(ARDUINO)/hardware/tools/avr/etc/avrdude.conf
endif
#make sure the avrdude conf file is referenced correctly in darwin
ifneq ($(findstring Darwin, $(SYSTYPE)),)
USERAVRDUDEFLAGS := -C $(ARDUINO)/hardware/tools/avr/etc/avrdude.conf
endif
ifeq ($(UPLOAD_PROTOCOL),)
UPLOAD_PROTOCOL := $(shell grep $(BOARD).upload.protocol $(BOARDFILE) | cut -d = -f 2)