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.
25 ifneq (,$(findstring $(board),goodfet40 goodfet41))
34 config = monitor spi ccspi
35 MSP430BSL?=goodfet.bsl --z1 --speed=38400
38 ifneq (,$(findstring $(board),goodfet24))
44 ifneq (,$(findstring $(board),nhb12b))
50 ifneq (,$(findstring $(board),nhb12))
56 ifneq (,$(findstring $(board),goodfet50 goodfet51))
61 ifeq ($(board),telosb)
64 config := monitor spi ccspi
68 ifeq ($(board),telosbbt)
71 config := monitor spi ccspi
77 ##################################
78 ## These are experimental boards.
79 ##################################
81 ifneq (,$(findstring $(board),donbfet))
84 CFLAGS=$(DEBUG) -mmcu=$(mcu) -W -Os -mcall-prologues -Wall -Wextra -Wuninitialized -fpack-struct -fshort-enums -funsigned-bitfields
85 config := monitor avr spi jscan
88 ifneq (,$(findstring $(board),arduino))
91 #BSL := avrdude -V -F -c stk500v1 -p m328p -b 57600 -P /dev/tty.usbserial-* -U flash:w:blink.hex
96 ifneq (,$(findstring $(board),tilaunchpad))
98 CFLAGS := -DDEBUG_LEVEL=3 -DDEBUG_START=1 -DINBAND_DEBUG
99 CFLAGS+= -Werror -Wall
100 config := monitor chipcon i2c
107 $(error Please define board, as explained in the README)
109 #platform := $(board)
111 AVAILABLE_APPS = monitor spi jtag sbw jtag430 jtag430x2 i2c jtagarm7 ejtag jtagxscale openocd chipcon avr pic adc nrf ccspi glitch smartcard ps2 slc2 maxusb
120 CONFIG_jtag430x2 ?= y
124 CONFIG_jtagxscale ?= n
133 CONFIG_smartcard ?= n
137 #The CONFIG_foo vars are only interpreted if $(config) is "unset".
138 ifeq ($(config),undef)
139 config += $(foreach app,$(AVAILABLE_APPS),$(if $(findstring $(CONFIG_$(app)),y yes t true Y YES T TRUE),$(app)))