]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
added check for atm1281 compatible external tools
authorsallai <sallai>
Tue, 6 Nov 2007 21:39:43 +0000 (21:39 +0000)
committersallai <sallai>
Tue, 6 Nov 2007 21:39:43 +0000 (21:39 +0000)
support/make/iris.target

index ce4e7d5158ebef6fa2d426c84c0f8063124679d1..ba760640b320478612b3e2e8602778c28bade02e 100644 (file)
@@ -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