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))
32 ifneq (,$(findstring $(board),stm32f4discovery))
33 GCC = arm-none-eabi-gcc
34 CC = arm-none-eabi-gcc
35 LD = arm-none-eabi-ld -v
38 CP = arm-none-eabi-objcopy
39 OD = arm-none-eabi-objdump
40 CFLAGS = -I./ -Iinclude/ -c -fno-common -O1 -g -mcpu=cortex-m3 -mthumb
41 AFLAGS = -ahls -mapcs-32
42 LFLAGS = -Ttmplink.cmd -nostartfiles
48 platform := stm32f4discovery
52 ifneq (,$(findstring $(board),facedancer10))
55 config = monitor spi maxusb
61 config = monitor spi ccspi
62 MSP430BSL?=goodfet.bsl --z1 --speed=38400
65 ifneq (,$(findstring $(board),goodfet24))
71 ifneq (,$(findstring $(board),nhb12b))
77 ifneq (,$(findstring $(board),nhb12))
83 ifneq (,$(findstring $(board),goodfet50 goodfet51))
88 ifeq ($(board),telosb)
91 config := monitor spi ccspi
95 ifeq ($(board),telosbbt)
98 config := monitor spi ccspi
104 ##################################
105 ## These are experimental boards.
106 ##################################
108 ifneq (,$(findstring $(board),donbfet))
113 CFLAGS=$(DEBUG) -Iinclude -mmcu=$(mcu) -W -Os -mcall-prologues -Wall -Wextra -Wuninitialized -fpack-struct -fshort-enums -funsigned-bitfields
114 config := monitor avr spi jscan
117 ifneq (,$(findstring $(board),arduino))
120 #BSL := avrdude -V -F -c stk500v1 -p m328p -b 57600 -P /dev/tty.usbserial-* -U flash:w:blink.hex
125 ifneq (,$(findstring $(board),tilaunchpad))
127 CFLAGS := -DDEBUG_LEVEL=3 -DDEBUG_START=1 -DINBAND_DEBUG
128 CFLAGS+= -Werror -Wall
129 config := monitor chipcon i2c
136 $(error Please define board, as explained in the README)
138 #platform := $(board)
140 AVAILABLE_APPS = monitor spi jtag sbw jtag430 jtag430x2 i2c jtagarm7 ejtag jtagxscale openocd chipcon avr pic adc nrf ccspi glitch smartcard ps2 slc2 maxusb
149 CONFIG_jtag430x2 ?= y
153 CONFIG_jtagxscale ?= n
162 CONFIG_smartcard ?= n
166 #The CONFIG_foo vars are only interpreted if $(config) is "unset".
167 ifeq ($(config),undef)
168 config += $(foreach app,$(AVAILABLE_APPS),$(if $(findstring $(CONFIG_$(app)),y yes t true Y YES T TRUE),$(app)))