X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fconfig.mk;h=79672b6407301127eefcdf9eb257a26685e8ec01;hp=a9f628976c904f3d1aad2f671845a345f7639feb;hb=236e059aa0e7d3ae5384e8dce3c0813b0daaa192;hpb=cb0b62cea38146c2414ccf215626daa8acf9aca5 diff --git a/firmware/config.mk b/firmware/config.mk index a9f6289..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,6 +25,14 @@ 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)) @@ -118,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