X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=firmware%2Ftests%2Fecho%2FMakefile;h=86e4f2c27f75a1314aba0c7f4d823d9c50b9e02e;hb=c1c46f33e0a5c2f926c30cd66d0072cc03aa1434;hp=1e5bbe822852ae1f2b55daf82cf13e3df0b173ee;hpb=557c8df140db5df5873520c05a1415ebf7202a37;p=goodfet diff --git a/firmware/tests/echo/Makefile b/firmware/tests/echo/Makefile index 1e5bbe8..86e4f2c 100644 --- a/firmware/tests/echo/Makefile +++ b/firmware/tests/echo/Makefile @@ -1,22 +1,25 @@ -PORT=/dev/ttyUSB0 -BSL=tos-bsl --invert-reset --invert-test -c $(PORT) + +BSL=goodfet.bsl #mcu=msp430x1611 -mcu=msp430x1612 +mcu?=msp430x2618 #ldscript is wonky -GCCINC=-T ../../ldscripts/161x.x +#GCCINC=-T ../../ldscripts/161x.x CC=msp430-gcc -g -mmcu=$(mcu) -DGCC $(GCCINC) -I ../../include -libs=../../lib/msp430f1612.c +libs=../../lib/$(mcu).c app=echo install: $(app) - $(BSL) -e -p $(app) - $(BSL) -P $(app) -r + $(BSL) -e -p $(app).hex + $(BSL) -P $(app).hex -r +all: $(app).hex $(app): $(app).c $(libs) +$(app).hex: $(app) + msp430-objcopy -O ihex $(app) $(app).hex erase: $(BSL) -e clean: