1 ##################################
2 ## These are production boards.
3 ##################################
5 #Unset by default, but can be explicitly set later.
8 ifneq (,$(findstring $(board),goodfet20 goodfet10 goodfet11))
13 ifneq (,$(findstring $(board),goodfet21))
18 ifneq (,$(findstring $(board),goodfet30 goodfet31))
21 # This will link to fit in a '2254, so unneeded packages should be omited.
26 ifneq (,$(findstring $(board),goodfet40 goodfet41))
35 config = monitor spi ccspi
36 MSP430BSL?=goodfet.bsl --z1 --speed=38400
39 ifneq (,$(findstring $(board),goodfet24))
45 ifneq (,$(findstring $(board),nhb12b))
51 ifneq (,$(findstring $(board),nhb12))
57 ifneq (,$(findstring $(board),goodfet50 goodfet51))
62 ifeq ($(board),telosb)
65 config := monitor spi ccspi
69 ifeq ($(board),telosbbt)
72 config := monitor spi ccspi
78 ##################################
79 ## These are experimental boards.
80 ##################################
82 ifneq (,$(findstring $(board),donbfet))
85 CFLAGS=$(DEBUG) -mmcu=$(mcu) -W -Os -mcall-prologues -Wall -Wextra -Wuninitialized -fpack-struct -fshort-enums -funsigned-bitfields
86 config := monitor avr spi jscan
89 ifneq (,$(findstring $(board),arduino))
92 #BSL := avrdude -V -F -c stk500v1 -p m328p -b 57600 -P /dev/tty.usbserial-* -U flash:w:blink.hex
97 ifneq (,$(findstring $(board),tilaunchpad))
99 CFLAGS := -DDEBUG_LEVEL=3 -DDEBUG_START=1 -DINBAND_DEBUG
100 CFLAGS+= -Werror -Wall
101 config := monitor chipcon i2c
108 $(error Please define board, as explained in the README)
110 #platform := $(board)
112 AVAILABLE_APPS = monitor spi jtag sbw jtag430 jtag430x2 i2c jtagarm7 ejtag jtagxscale openocd chipcon avr pic adc nrf ccspi glitch smartcard ps2 slc2 maxusb
121 CONFIG_jtag430x2 ?= y
125 CONFIG_jtagxscale ?= n
134 CONFIG_smartcard ?= n
138 #The CONFIG_foo vars are only interpreted if $(config) is "unset".
139 ifeq ($(config),undef)
140 config += $(foreach app,$(AVAILABLE_APPS),$(if $(findstring $(CONFIG_$(app)),y yes t true Y YES T TRUE),$(app)))