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))
31 ifneq (,$(findstring $(board),goodfet24))
37 ifneq (,$(findstring $(board),nhb12b))
43 ifneq (,$(findstring $(board),nhb12))
49 ifneq (,$(findstring $(board),goodfet50 goodfet51))
54 ifeq ($(board),telosb)
57 config := monitor spi ccspi
61 ifeq ($(board),telosbbt)
64 config := monitor spi ccspi
70 ##################################
71 ## These are experimental boards.
72 ##################################
74 ifneq (,$(findstring $(board),donbfet))
77 CFLAGS=$(DEBUG) -mmcu=$(mcu) -W -Os -mcall-prologues -Wall -Wextra -Wuninitialized -fpack-struct -fshort-enums -funsigned-bitfields
78 config := monitor avr spi jscan
81 ifneq (,$(findstring $(board),arduino))
84 #BSL := avrdude -V -F -c stk500v1 -p m328p -b 57600 -P /dev/tty.usbserial-* -U flash:w:blink.hex
89 ifneq (,$(findstring $(board),tilaunchpad))
91 CFLAGS := -DDEBUG_LEVEL=3 -DDEBUG_START=1 -DINBAND_DEBUG
92 CFLAGS+= -Werror -Wall
93 config := monitor chipcon i2c
100 $(error Please define board, as explained in the README)
102 #platform := $(board)
104 AVAILABLE_APPS = monitor spi jtag sbw jtag430 jtag430x2 i2c jtagarm7 ejtag jtagxscale openocd chipcon avr pic adc nrf ccspi glitch smartcard ps2 slc2 maxusb
113 CONFIG_jtag430x2 ?= y
117 CONFIG_jtagxscale ?= n
126 CONFIG_smartcard ?= n
130 #The CONFIG_foo vars are only interpreted if $(config) is "unset".
131 ifeq ($(config),undef)
132 config += $(foreach app,$(AVAILABLE_APPS),$(if $(findstring $(CONFIG_$(app)),y yes t true Y YES T TRUE),$(app)))