1 ##################################
2 ## These are production boards.
3 ##################################
6 ifneq (,$(findstring $(board),goodfet20 goodfet10 goodfet11))
11 ifneq (,$(findstring $(board),goodfet21))
16 ifneq (,$(findstring $(board),goodfet30 goodfet31))
19 # This will link to fit in a '2254, so unneeded packages should be omited.
23 ifneq (,$(findstring $(board),goodfet40 goodfet41))
28 ifneq (,$(findstring $(board),goodfet24))
34 ifneq (,$(findstring $(board),nhb12b))
40 ifneq (,$(findstring $(board),nhb12))
46 ifneq (,$(findstring $(board),goodfet50 goodfet51))
51 ifeq ($(board),telosb)
54 config := monitor spi ccspi
58 ifeq ($(board),telosbbt)
61 config := monitor spi ccspi
67 ##################################
68 ## These are experimental boards.
69 ##################################
71 ifneq (,$(findstring $(board),donbfet))
74 CFLAGS=$(DEBUG) -mmcu=$(mcu) -W -Os -mcall-prologues -Wall -Wextra -Wuninitialized -fpack-struct -fshort-enums -funsigned-bitfields
75 config := monitor avr spi jscan
78 ifneq (,$(findstring $(board),arduino))
81 #BSL := avrdude -V -F -c stk500v1 -p m328p -b 57600 -P /dev/tty.usbserial-* -U flash:w:blink.hex
86 ifneq (,$(findstring $(board),tilaunchpad))
88 CFLAGS := -DDEBUG_LEVEL=3 -DDEBUG_START=1 -DINBAND_DEBUG
89 CFLAGS+= -Werror -Wall
90 config := monitor chipcon i2c
97 $(error Please define board, as explained in the README)
101 AVAILABLE_APPS = monitor spi jtag sbw jtag430 jtag430x2 i2c jtagarm7 ejtag jtagxscale openocd chipcon avr pic adc nrf ccspi glitch smartcard ps2 slc2 maxusb
110 CONFIG_jtag430x2 ?= y
114 CONFIG_jtagxscale ?= n
123 CONFIG_smartcard ?= n
127 #The CONFIG_foo vars are only interpreted if $(config) is unset.
128 ifeq ($(config),undef)
129 config += $(foreach app,$(AVAILABLE_APPS),$(if $(findstring $(CONFIG_$(app)),y yes t true Y YES T TRUE),$(app)))