From: sallai Date: Tue, 6 Nov 2007 21:39:43 +0000 (+0000) Subject: added check for atm1281 compatible external tools X-Git-Tag: release_tinyos_2_1_0_0~666 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=198751810809a73ce84550e83668a03d57676ea8 added check for atm1281 compatible external tools --- 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