Added override for mega upload protocol.

This commit is contained in:
James Goppert 2011-09-26 20:29:09 -04:00
parent bd09dd392d
commit 9c766d6373
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)
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),)
$(error ERROR: Could not locate board $(BOARD) in $(BOARDFILE))
endif