7 #For tos-bsl, use --invert-reset --invert-test
8 BSL?=goodfet.bsl --speed=38400
11 #One of these should be defined explicitly.
12 #Default removed because of confusion.
24 #N.B., gcc WILL NOT BITCH if this file doesn't exist.
25 #GCCINC=-T ldscripts/161x.x
26 GCCINC=-T ldscripts/$(mcu).x
29 CC=msp430-gcc -Wall -Os -g -mmcu=$(mcu) -D$(mcu) -D$(platform) -Dplatform=$(platform) -DGCC $(GCCINC) -I include $(CCEXTRA)
31 #Define extra modules here.
32 #moreapps?=apps/i2c/i2c.o apps/glitch/glitch.o apps/jtag/sbw.o apps/smartcard/smartcard.o apps/jtag/ejtag.o apps/jtag/jtagxscale.o
33 moreapps?=apps/jtag/sbw.o apps/glitch/glitch.o
34 # should include apps/jtag/jtagarm7tdmi.o to build jtag for ARM7
35 # should include apps/pic/dspic33f.o to build support for PIC24H/dsPIC33F
37 apps= $(moreapps) apps/chipcon/chipcon.o apps/radios/nrf.o apps/radios/ccspi.o apps/monitor/monitor.o apps/spi/spi.o apps/jtag/jtag.o apps/jtag/jtag430.o apps/jtag/jtag430x2.o apps/avr/avr.o
39 #apps/chipcon/chipconasm.o removed
40 libs= lib/$(mcu).o lib/command.o apps/jtag/jtag430asm.o lib/dco_calib.o
53 cp platforms/$(platform).h include/config.h
57 ../client/goodfet.msp430 test
60 $(BSL) -e -p $(app).hex
61 ls info.txt && $(BSL) -P $(app).hex -p info.txt || true #MSP430F2xx targets only, inelegant.
63 $(BSL) -P $(app).hex -v $(app).hex
67 $(app): $(app).c $(libs) $(apps)
69 msp430-objcopy goodfet -O ihex goodfet.hex
71 msp430-objdump -D -m msp430 $(app).hex | m4s init
75 rm -f $(app) $(app).hex $(libs) $(apps) include/config.h
79 rsync --exclude .svn -ave ssh doc/html/* travisutk,goodfet@web.sourceforge.net:htdocs/docs/