X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fconfig.mk;h=79672b6407301127eefcdf9eb257a26685e8ec01;hp=4bb7af5ebf66f4480ffe329695a64d7c33ab6153;hb=236e059aa0e7d3ae5384e8dce3c0813b0daaa192;hpb=e905c90c50293dd607f00ef2395f50a653585808 diff --git a/firmware/config.mk b/firmware/config.mk index 4bb7af5..79672b6 100644 --- a/firmware/config.mk +++ b/firmware/config.mk @@ -2,6 +2,8 @@ ## These are production boards. ################################## +#Unset by default, but can be explicitly set later. +config=undef ifneq (,$(findstring $(board),goodfet20 goodfet10 goodfet11)) mcu ?= msp430f1612 @@ -23,11 +25,20 @@ endif ifneq (,$(findstring $(board),goodfet40 goodfet41)) mcu ?= msp430f2618 platform := goodfet +CONFIG_nrf = y +endif + +ifeq ($(board),z1) +mcu ?= msp430f2618 +platform := goodfet +CONFIG_ccspi = y +MSP430BSL?=goodfet.bsl --z1 --speed=38400 endif ifneq (,$(findstring $(board),goodfet24)) mcu ?= msp430f2618 platform := goodfet +CONFIG_glitch = y endif ifneq (,$(findstring $(board),nhb12b)) @@ -117,13 +128,13 @@ CONFIG_avr ?= y CONFIG_pic ?= n CONFIG_adc ?= n CONFIG_nrf ?= n -CONFIG_ccspi ?= y +CONFIG_ccspi ?= n CONFIG_glitch ?= n CONFIG_smartcard ?= n CONFIG_ps2 ?= n CONFIG_slc2 ?= n -#The CONFIG_foo vars are only interpreted if $(config) is unset. +#The CONFIG_foo vars are only interpreted if $(config) is "unset". ifeq ($(config),undef) config += $(foreach app,$(AVAILABLE_APPS),$(if $(findstring $(CONFIG_$(app)),y yes t true Y YES T TRUE),$(app))) endif