Fixed GF30 support by reducing the app count.
[goodfet] / firmware / config.mk
1 mcu = undef
2 ifneq (,$(findstring $(board),goodfet20))
3 mcu := msp430x1612
4 endif
5
6 ifneq (,$(findstring $(board),goodfet30 goodfet31))
7 mcu := msp430x2274
8 # This will link to fit in a '2254, so unneeded packages should be omited.
9 CONFIG_ccspi = n
10 endif
11
12 ifneq (,$(findstring $(board),goodfet40 goodfet41))
13 mcu := msp430x2618
14 endif
15
16 ifneq (,$(findstring $(board),goodfet50 goodfet51))
17 mcu := msp430x5510
18 endif
19
20 ifeq ($(mcu),undef)
21 $(error Please define board, as explained in the README)
22 endif
23
24 AVAILABLE_APPS = monitor spi jtag sbw jtag430 jtag430x2 i2c jtagarm7 ejtag jtagxscale openocd chipcon avr pic adc nrf ccspi glitch smartcard ps2 
25
26 CONFIG_sbw         = y
27
28 # defaults
29 CONFIG_monitor    ?= y
30 CONFIG_spi        ?= y
31 CONFIG_jtag       ?= n
32 CONFIG_sbw        ?= n
33 CONFIG_jtag430    ?= y
34 CONFIG_jtag430x2  ?= y
35 CONFIG_i2c        ?= n
36 CONFIG_jtagarm7   ?= n
37 CONFIG_ejtag      ?= n
38 CONFIG_jtagxscale ?= n
39 CONFIG_openocd    ?= y
40 CONFIG_chipcon    ?= y
41 CONFIG_avr        ?= y
42 CONFIG_pic        ?= n
43 CONFIG_adc        ?= n
44 CONFIG_nrf        ?= n
45 CONFIG_ccspi      ?= y
46 CONFIG_glitch     ?= n
47 CONFIG_smartcard  ?= n
48 CONFIG_ps2        ?= n
49
50
51 config := $(foreach app,$(AVAILABLE_APPS),$(if $(findstring $(CONFIG_$(app)),y yes t true Y YES T TRUE),$(app)))
52