Added override for mega upload protocol.

This commit is contained in:
James Goppert 2011-09-26 20:29:09 -04:00
parent 30f4ced9df
commit f7a307e349
1 changed files with 6 additions and 0 deletions

View File

@ -330,6 +330,12 @@ ifeq ($(UPLOAD_PROTOCOL),)
UPLOAD_PROTOCOL := $(shell grep $(BOARD).upload.protocol $(BOARDFILE) | cut -d = -f 2) UPLOAD_PROTOCOL := $(shell grep $(BOARD).upload.protocol $(BOARDFILE) | cut -d = -f 2)
endif endif
# Adding override for mega since boards.txt uses stk500 instead of
# arduino on 22 release
ifeq ($(BOARD),"mega")
UPLOAD_PROTOCOL := "arduino"
endif
ifeq ($(MCU),) ifeq ($(MCU),)
$(error ERROR: Could not locate board $(BOARD) in $(BOARDFILE)) $(error ERROR: Could not locate board $(BOARD) in $(BOARDFILE))
endif endif