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))
30 ifneq (,$(findstring $(board),goodfet24))
36 ifneq (,$(findstring $(board),nhb12b))
42 ifneq (,$(findstring $(board),nhb12))
48 ifneq (,$(findstring $(board),goodfet50 goodfet51))
53 ifeq ($(board),telosb)
56 config := monitor spi ccspi
60 ifeq ($(board),telosbbt)
63 config := monitor spi ccspi
69 ##################################
70 ## These are experimental boards.
71 ##################################
73 ifneq (,$(findstring $(board),donbfet))
76 CFLAGS=$(DEBUG) -mmcu=$(mcu) -W -Os -mcall-prologues -Wall -Wextra -Wuninitialized -fpack-struct -fshort-enums -funsigned-bitfields
77 config := monitor avr spi jscan
80 ifneq (,$(findstring $(board),arduino))
83 #BSL := avrdude -V -F -c stk500v1 -p m328p -b 57600 -P /dev/tty.usbserial-* -U flash:w:blink.hex
88 ifneq (,$(findstring $(board),tilaunchpad))
90 CFLAGS := -DDEBUG_LEVEL=3 -DDEBUG_START=1 -DINBAND_DEBUG
91 CFLAGS+= -Werror -Wall
92 config := monitor chipcon i2c
99 $(error Please define board, as explained in the README)
101 #platform := $(board)
103 AVAILABLE_APPS = monitor spi jtag sbw jtag430 jtag430x2 i2c jtagarm7 ejtag jtagxscale openocd chipcon avr pic adc nrf ccspi glitch smartcard ps2 slc2 maxusb
112 CONFIG_jtag430x2 ?= y
116 CONFIG_jtagxscale ?= n
125 CONFIG_smartcard ?= n
129 #The CONFIG_foo vars are only interpreted if $(config) is "unset".
130 ifeq ($(config),undef)
131 config += $(foreach app,$(AVAILABLE_APPS),$(if $(findstring $(CONFIG_$(app)),y yes t true Y YES T TRUE),$(app)))