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))
34 periph ?= /opt/STM32F4xx_StdPeriph_Driver
35 discovery ?= /opt/STM32F4-Discovery_FW_V1.1.0
36 pincs ?= -I$(periph)/inc -I$(discovery)/Libraries/CMSIS/ST/STM32F4xx/Include -I$(discovery)/Libraries/CMSIS/Include -Dassert_param\(x\)=
37 psrc ?= /opt/STM32F4xx_StdPeriph_Driver/src
40 GCC = arm-none-eabi-gcc
41 CC = arm-none-eabi-gcc
42 LD = arm-none-eabi-ld -v
45 CP = arm-none-eabi-objcopy
46 OD = arm-none-eabi-objdump
47 CFLAGS = -c -fno-common -O1 -g -mcpu=cortex-m3 -mthumb $(pincs)
48 AFLAGS = -ahls -mapcs-32
49 LFLAGS = -Ttmplink.cmd -nostartfiles
56 platform := stm32f4discovery
58 extralibs = lib/cortexm3.o lib/system_stm32f4xx.o $(psrc)/stm32f4xx_rcc.o $(psrc)/stm32f4xx_gpio.o
62 ifneq (,$(findstring $(board),facedancer10))
65 config = monitor spi maxusb
71 config = monitor spi ccspi
72 MSP430BSL?=goodfet.bsl --z1 --speed=38400
75 ifneq (,$(findstring $(board),goodfet24))
81 ifneq (,$(findstring $(board),nhb12b))
87 ifneq (,$(findstring $(board),nhb12))
93 ifneq (,$(findstring $(board),goodfet50 goodfet51))
98 ifeq ($(board),telosb)
101 config := monitor spi ccspi
105 ifeq ($(board),telosbbt)
108 config := monitor spi ccspi
114 ##################################
115 ## These are experimental boards.
116 ##################################
118 ifneq (,$(findstring $(board),donbfet))
123 CFLAGS=$(DEBUG) -Iinclude -mmcu=$(mcu) -W -Os -mcall-prologues -Wall -Wextra -Wuninitialized -fpack-struct -fshort-enums -funsigned-bitfields
124 config := monitor avr spi jscan
127 ifneq (,$(findstring $(board),arduino))
130 #BSL := avrdude -V -F -c stk500v1 -p m328p -b 57600 -P /dev/tty.usbserial-* -U flash:w:blink.hex
135 ifneq (,$(findstring $(board),tilaunchpad))
137 CFLAGS := -DDEBUG_LEVEL=3 -DDEBUG_START=1 -DINBAND_DEBUG
138 CFLAGS+= -Werror -Wall
139 config := monitor chipcon i2c
146 $(error Please define board, as explained in the README)
148 #platform := $(board)
150 AVAILABLE_APPS = monitor spi jtag sbw jtag430 jtag430x2 i2c jtagarm7 ejtag jtagxscale openocd chipcon avr pic adc nrf ccspi glitch smartcard ps2 slc2 maxusb
159 CONFIG_jtag430x2 ?= y
163 CONFIG_jtagxscale ?= n
172 CONFIG_smartcard ?= n
176 #The CONFIG_foo vars are only interpreted if $(config) is "unset".
177 ifeq ($(config),undef)
178 config += $(foreach app,$(AVAILABLE_APPS),$(if $(findstring $(CONFIG_$(app)),y yes t true Y YES T TRUE),$(app)))