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
50 extralibs = lib/cortexm3.o
53 ifneq (,$(findstring $(board),facedancer10))
56 config = monitor spi maxusb
62 config = monitor spi ccspi
63 MSP430BSL?=goodfet.bsl --z1 --speed=38400
66 ifneq (,$(findstring $(board),goodfet24))
72 ifneq (,$(findstring $(board),nhb12b))
78 ifneq (,$(findstring $(board),nhb12))
84 ifneq (,$(findstring $(board),goodfet50 goodfet51))
89 ifeq ($(board),telosb)
92 config := monitor spi ccspi
96 ifeq ($(board),telosbbt)
99 config := monitor spi ccspi
105 ##################################
106 ## These are experimental boards.
107 ##################################
109 ifneq (,$(findstring $(board),donbfet))
114 CFLAGS=$(DEBUG) -Iinclude -mmcu=$(mcu) -W -Os -mcall-prologues -Wall -Wextra -Wuninitialized -fpack-struct -fshort-enums -funsigned-bitfields
115 config := monitor avr spi jscan
118 ifneq (,$(findstring $(board),arduino))
121 #BSL := avrdude -V -F -c stk500v1 -p m328p -b 57600 -P /dev/tty.usbserial-* -U flash:w:blink.hex
126 ifneq (,$(findstring $(board),tilaunchpad))
128 CFLAGS := -DDEBUG_LEVEL=3 -DDEBUG_START=1 -DINBAND_DEBUG
129 CFLAGS+= -Werror -Wall
130 config := monitor chipcon i2c
137 $(error Please define board, as explained in the README)
139 #platform := $(board)
141 AVAILABLE_APPS = monitor spi jtag sbw jtag430 jtag430x2 i2c jtagarm7 ejtag jtagxscale openocd chipcon avr pic adc nrf ccspi glitch smartcard ps2 slc2 maxusb
150 CONFIG_jtag430x2 ?= y
154 CONFIG_jtagxscale ?= n
163 CONFIG_smartcard ?= n
167 #The CONFIG_foo vars are only interpreted if $(config) is "unset".
168 ifeq ($(config),undef)
169 config += $(foreach app,$(AVAILABLE_APPS),$(if $(findstring $(CONFIG_$(app)),y yes t true Y YES T TRUE),$(app)))