X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=support%2Fmake%2Firis.target;h=ba760640b320478612b3e2e8602778c28bade02e;hb=198751810809a73ce84550e83668a03d57676ea8;hp=ce4e7d5158ebef6fa2d426c84c0f8063124679d1;hpb=4a57660b0c94816a2098e73375aaa7d85ae80ff5;p=tinyos-2.x.git diff --git a/support/make/iris.target b/support/make/iris.target index ce4e7d51..ba760640 100644 --- a/support/make/iris.target +++ b/support/make/iris.target @@ -4,6 +4,12 @@ PLATFORM = iris SENSORBOARD ?= micasb PROGRAMMER ?= avrdude + +AVRGCC_SUPPORTS_ATM1281 = $(shell avr-gcc --target-help 2>&1 | grep -c atmega12811) +ifneq ($(AVRGCC_SUPPORTS_ATM1281),1) + $(error Found avr-gcc with no ATMega1281 support. For details on upgrading your toolchain, please see "http://www.isis.vanderbilt.edu/projects/NEST/tinyos-2.x-iris/doc/html/install-tinyos-iris.html") +endif + ifeq ($(PROGRAMMER),avrdude) PROGRAMMER_PART ?= -pm1281 -U efuse:w:0xff:m endif