FreeCalypso > hg > fc-magnetite
view configs/l1reconst @ 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 | 28ed4002131a |
children |
line wrap: on
line source
# This configuration is similar to "classic", but L1 is rebuilt # from the reconstructed source. Additionally, ATP, LCC and MKS # have been removed. ATP and MKS have always been dead code, # whereas LCC is only applicable to hardware targets that are designed # to work with "low cost" chargers - and none of our targets are in # that category. GPRS=1 MMI=0 SRVC=1 export GPRS MMI SRVC ATP_STATE=0 FCHG_STATE=0 LCC_STATE=0 MKS_STATE=0 PWR_STATE=0 R2D_STATE=0 export ATP_STATE FCHG_STATE LCC_STATE MKS_STATE PWR_STATE R2D_STATE scripts/config-headers-new.sh CONDAT=condat2 GPF=gpf2 CDGINC=cdg211/cdginc CDGPRIM=cdg211/prim ACI=aci2 export CONDAT GPF CDGINC CDGPRIM ACI blob_lib_std ccddata # ACI libs build_lib aci classic build_lib aciext classic build_lib aci_dti_mng classic build_lib atiext classic build_lib comlib build_lib config_gprs_fl build_lib config_gprs_ir lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))' # G23M protocol stack libs blob_lib_std alr blob_lib_std cc blob_lib_std cci blob_lib_std cci_ir lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))' blob_lib_std dl blob_lib_std dti blob_lib_std fad blob_lib_std gmm blob_lib_std grlc blob_lib_std grlc_ir lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))' blob_lib_std grr build_lib l1_pei blob_lib_std l2r blob_lib_std llc blob_lib_std mm blob_lib_std ra blob_lib_std rlp blob_lib_std rr blob_lib_std sim_b_lib blob_lib_std sm blob_lib_std sms blob_lib_std sndcp blob_lib_std ss blob_lib_std t30 blob_lib_std uart_b_lib blob_lib_std ppp blob_lib_std ppp_ir lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))' # Condat drivers build_lib gdi # GPF blob_lib_gpf ccd_na7_db build_lib frame_na7_db_fl partial build_lib frame_na7_db_ir partial lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))' build_lib misc_na7_db_fl build_lib misc_na7_db_ir lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))' blob_lib_gpf osx_na7_db lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))' build_lib tif_na7_db_fl build_lib tif_na7_db_ir lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))' # core drivers build_lib drivers_flash # Layer 1 build_lib tpudrv lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))' build_lib l1_ext lib_link_magic '(BSS_LIBS (.l1s_global))' build_lib l1_int lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))' build_lib l1_custom_ext build_lib l1_custom_int lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))' build_lib riviera_core_flash build_lib riviera_cust_flash # services #build_lib atp build_lib audio build_lib audio_bgd build_lib cst build_lib dar build_lib dar_gbl_var lib_link_magic '(BSS_DAR_LIB (.bss))' build_lib etm build_lib lls #build_lib mks # app drivers build_lib abb build_lib buzzer build_lib ffs build_lib ffs_drv build_lib ffs_pcm build_lib kpd #build_lib lcc build_lib power build_lib rtc_drv build_lib sim_drv build_lib spi_drv build_lib uart_drv # system glue build_lib main init build_lib bootloader lib_link_magic '(CONST_BOOT_LIB (.const, .text, .text:v$3) BSS_BOOT_LIB (.bss))' # Nucleus and TI's compiler stuff blob_lib_os nucleus_flash_nodbg blob_lib_os nucleus_int_ram_nodbg lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))' blob_lib_os rts16le_flash blob_lib_os rts16le_int_ram lib_link_magic '(BSS_LIBS (.bss))' str2ind_blobs_used=1