FreeCalypso > hg > fc-magnetite
view src/aci2/bmi/bmi_env.mak @ 600:8f50b202e81f
board preprocessor conditionals: prep for more FC hw in the future
This change eliminates the CONFIG_TARGET_FCDEV3B preprocessor symbol and
all preprocessor conditionals throughout the code base that tested for it,
replacing them with CONFIG_TARGET_FCFAM or CONFIG_TARGET_FCMODEM. These
new symbols are specified as follows:
CONFIG_TARGET_FCFAM is intended to cover all hardware designs created by
Mother Mychaela under the FreeCalypso trademark. This family will include
modem products (repackagings of the FCDEV3B, possibly with RFFE or even
RF transceiver changes), and also my desired FreeCalypso handset product.
CONFIG_TARGET_FCMODEM is intended to cover all FreeCalypso modem products
(which will be firmware-compatible with the FCDEV3B if they use TI Rita
transceiver, or will require a different fw build if we switch to one of
Silabs Aero transceivers), but not the handset product. Right now this
CONFIG_TARGET_FCMODEM preprocessor symbol is used to conditionalize
everything dealing with MCSI.
At the present moment the future of FC hardware evolution is still unknown:
it is not known whether we will ever have any beyond-FCDEV3B hardware at all
(contingent on uncertain funding), and if we do produce further FC hardware
designs, it is not known whether they will retain the same FIC modem core
(triband), if we are going to have a quadband design that still retains the
classic Rita transceiver, or if we are going to switch to Silabs Aero II
or some other transceiver. If we produce a quadband modem that still uses
Rita, it will run exactly the same fw as the FCDEV3B thanks to the way we
define TSPACT signals for the RF_FAM=12 && CONFIG_TARGET_FCFAM combination,
and the current fcdev3b build target will be renamed to fcmodem. OTOH, if
that putative quadband modem will be Aero-based, then it will require a
different fw build target, the fcdev3b target will stay as it is, and the
two targets will both define CONFIG_TARGET_FCFAM and CONFIG_TARGET_FCMODEM,
but will have different RF_FAM numbers. But no matter which way we are
going to evolve, it is not right to have conditionals on CONFIG_TARGET_FCDEV3B
in places like ACI, and the present change clears the way for future
evolution.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 01 Apr 2019 01:05:24 +0000 |
parents | 93999a60b835 |
children |
line wrap: on
line source
#BMI compilation parameters. # EazyText compilation. 1 -> Compile. 0 -> Don't compile. # Hard-wire ETXT off until supported, then set via .inf file. #ifndef ETXT #ETXT = 0 #endif # Chinese compilation. . 1 -> Compile. 0 -> Don't compile. # Hard-wire CHIMMI off until supported, then set via .inf file. #ifndef CHIMMI #CHIMMI = 0 #endif # Game compilation. . 1 -> Compile. 0 -> Don't compile. # Now set via .inf file #ifndef GAME #GAME = 1 #endif # Melody generator compilation. . 1 -> Compile. 0 -> Don't compile. # Hard-wire MELGEN off until supported, then set via .inf file. #ifndef MELGEN export MELGEN = 0 #endif # HOMEZONE compilation. 1 -> Compile. 0 -> Don't compile. # Now set via .inf file #ifndef HZONE #HZONE = 1 #endif # GPRS compilation. 1 -> Compile. 0 -> Don't compile. # Should we be setting this here at all ????? Set via .inf file ????? #ifndef GPRS #GPRS = 1 #endif # Internal phonebook compilation. 1 -> Compile. 0 -> Don't compile. # Hard-wire INTPB on, no .inf file setting. ifndef INTPB INTPB = 1 endif ifeq ($(WAP),1) export AUS_REL_DIR = $(CONDAT_BASE_DIR)/../ausystem # $AUSYSTEM_DIR is being set by /g23m/makefile, if $WAP==1 export GLE_DIR = $(AUS_REL_DIR)/GLE endif ifeq ($(ETXT),1) export ZI_DIR = $(CONDAT_BASE_DIR)/../zi endif ifeq ($(SRVC),1) ifeq ($(MMI),2) # dbachran, 2003-06-11: isn't this variable obsolete by now? CMDADD:=_fd# To be added to the cmd name file in order to set the proper libraries to the external memory. endif endif ifeq ($(WAP),1) ifeq ($(MMI),2) # dbachran, 2003-06-11: isn't this variable obsolete by now? CMDADD:=_wap# To be added to the cmd name file in order to set the proper libraries to the external memory. endif endif ifeq ($(WAP),1) # NOTE: Use $AUSYSTEM_DIR (absolute path, set by /g23m/makefile) here # since these variables are used for includes from source dirs below, # so no relativ path allowed. export IAUS = $(AUSYSTEM_DIR)/Gwc/include export IAUSC = $(AUSYSTEM_DIR)/Gwc/source export IGLE = $(AUSYSTEM_DIR)/GLE/include export IAUSOPTMEM = $(AUSYSTEM_DIR)/Gwc/optional/memory endif ifeq ($(ETXT),1) include $(ZI_DIR)/zi_env.mak endif ifeq ($(ETXT),1) CONDAT_LIBS += $(ZI_LIB) $(ZI_C_LIB) endif ifeq ($(WAP),1) include $(AUS_REL_DIR)/ausystem_env.mak include $(GLE_DIR)/gle_env.mak endif ifeq ($(WAP),1) # Libraries for wap versions CONDAT_LIBS += $(AUS_REL_LIB) $(GLE_REL_LIB) endif