FreeCalypso > hg > fc-magnetite
annotate components/icn @ 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 | 4d7c2ccb5814 |
children |
rev | line source |
---|---|
124 | 1 # Building icn.lib from TCS211 source |
2 | |
3 CFLAGS="-me -mt -o -pw2 -x -mw" | |
4 CPPFLAGS= | |
5 | |
6 # Defines | |
7 | |
8 CPPFLAGS=-DMMI_HOMEZONE_ENABLED | |
9 CPPFLAGS="$CPPFLAGS -DFF_MMI_SAT_ICON" | |
10 CPPFLAGS="$CPPFLAGS -DFF_MMI_SMS_DYNAMIC" | |
11 | |
12 if [ "$GPRS" = 1 ] | |
13 then | |
14 CPPFLAGS="$CPPFLAGS -DMMI_GPRS_ENABLED" | |
15 fi | |
16 | |
17 CPPFLAGS="$CPPFLAGS -DMMI_EM_ENABLED" | |
18 CPPFLAGS="$CPPFLAGS -DNO_ASCIIZ" | |
19 | |
452
4d7c2ccb5814
config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
20 case "$UI_CONFIG" in |
4d7c2ccb5814
config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
21 bigcolor) |
451
fd1d9063ad40
config mechanism: added ability to build D-Sample B&W UI configuration
Mychaela Falconia <falcon@freecalypso.org>
parents:
419
diff
changeset
|
22 CPPFLAGS="$CPPFLAGS -DCOLOURDISPLAY" |
452
4d7c2ccb5814
config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
23 CPPFLAGS="$CPPFLAGS -DLSCREEN" |
4d7c2ccb5814
config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
24 ;; |
4d7c2ccb5814
config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
25 bigbw) |
4d7c2ccb5814
config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
26 CPPFLAGS="$CPPFLAGS -DLSCREEN" |
4d7c2ccb5814
config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
27 ;; |
4d7c2ccb5814
config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
28 84x48) |
4d7c2ccb5814
config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
29 ;; |
4d7c2ccb5814
config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
30 *) |
4d7c2ccb5814
config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
31 echo "Error: UI_CONFIG=$UI_CONFIG setting not understood" 1>&2 |
4d7c2ccb5814
config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
32 exit 1 |
4d7c2ccb5814
config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
33 esac |
124 | 34 |
35 CPPFLAGS="$CPPFLAGS -DINT_PHONEBOOK" | |
36 CPPFLAGS="$CPPFLAGS -DNEW_EDITOR" | |
37 CPPFLAGS="$CPPFLAGS -DTRGT_G23" | |
38 CPPFLAGS="$CPPFLAGS -DAUS_CONDAT_TYPE_PORTING" | |
39 CPPFLAGS="$CPPFLAGS -DCCDTABLES_EXTERN" | |
40 CPPFLAGS="$CPPFLAGS -DOPTION_MULTITHREAD" | |
41 CPPFLAGS="$CPPFLAGS -DNEW_FRAME" | |
42 CPPFLAGS="$CPPFLAGS -DNEW_ENTITY" | |
43 CPPFLAGS="$CPPFLAGS -D_TARGET_" | |
44 CPPFLAGS="$CPPFLAGS -DSHARED_VSI" | |
45 CPPFLAGS="$CPPFLAGS -DALR" | |
46 CPPFLAGS="$CPPFLAGS -DFF_HOMEZONE" | |
47 CPPFLAGS="$CPPFLAGS -DFF_MMI_SAT_ICON" | |
48 CPPFLAGS="$CPPFLAGS -DFF_MMI_SMS_DYNAMIC" | |
49 CPPFLAGS="$CPPFLAGS -DFF_CPHS" | |
50 CPPFLAGS="$CPPFLAGS -D_TMS470" | |
51 CPPFLAGS="$CPPFLAGS -DUART" | |
52 CPPFLAGS="$CPPFLAGS -DFF_ATI" | |
53 CPPFLAGS="$CPPFLAGS -DPHONEBOOK_EXTENSION" | |
54 | |
55 if [ "$GPRS" = 1 ] | |
56 then | |
57 CPPFLAGS="$CPPFLAGS -DGPRS" | |
58 fi | |
59 | |
60 CPPFLAGS="$CPPFLAGS -DFF_EM_MODE" | |
61 CPPFLAGS="$CPPFLAGS -DMMI=2" | |
62 CPPFLAGS="$CPPFLAGS -DMFW" | |
63 CPPFLAGS="$CPPFLAGS -DAT_INTERPRETER" | |
64 CPPFLAGS="$CPPFLAGS -DUSE_L1FD_FUNC_INTERFACE" | |
65 | |
66 if [ "$SRVC" != 0 ] | |
67 then | |
68 CPPFLAGS="$CPPFLAGS -DFAX_AND_DATA" | |
69 if [ "$SRVC" = 1 ] | |
70 then | |
71 CPPFLAGS="$CPPFLAGS -DFF_FAX" | |
72 fi | |
73 CPPFLAGS="$CPPFLAGS -DUSE_L2FD_FUNC_INTERFACE" | |
74 fi | |
75 | |
76 CPPFLAGS="$CPPFLAGS -DSRVC=$SRVC" | |
77 CPPFLAGS="$CPPFLAGS -DNWARN" | |
78 | |
79 # Includes | |
80 | |
81 CPPFLAGS="$CPPFLAGS -I$SRC/$CONDAT/com/inc" | |
82 CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/inc" | |
83 CPPFLAGS="$CPPFLAGS -I$SRC/$CONDAT/com/include" | |
84 CPPFLAGS="$CPPFLAGS -I../../$CDGINC" | |
85 CPPFLAGS="$CPPFLAGS -I$SRC/aci2/bmi" | |
86 CPPFLAGS="$CPPFLAGS -I$SRC/aci2/mfw" | |
419
59143cd42ec7
failed attempt to build TCS211 UI atop of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
378
diff
changeset
|
87 CPPFLAGS="$CPPFLAGS -I$SRC/$ACI/aci" |
59143cd42ec7
failed attempt to build TCS211 UI atop of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
378
diff
changeset
|
88 CPPFLAGS="$CPPFLAGS -I$SRC/$ACI/ksd" |
124 | 89 CPPFLAGS="$CPPFLAGS -I.." |
90 CPPFLAGS="$CPPFLAGS -I../config" | |
91 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera" | |
92 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_app" | |
93 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core" | |
94 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/abb" | |
95 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/armio" | |
96 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/clkm" | |
97 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/conf" | |
98 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dma" | |
99 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dsp_dwnld" | |
100 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/inth" | |
101 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/memif" | |
102 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/rhea" | |
103 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/security" | |
104 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/spi" | |
105 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/timer" | |
106 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/uart" | |
107 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/ulpd" | |
108 CPPFLAGS="$CPPFLAGS -I$SRC/cs/system" | |
109 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/include" | |
110 CPPFLAGS="$CPPFLAGS -I$SRC/cs/services" | |
111 | |
112 # Source modules | |
113 | |
114 SRCDIR=$SRC/aci2/bmi/Icons | |
115 | |
116 cfile_str2ind $SRCDIR/IcnAniPhone.c | |
117 cfile_str2ind $SRCDIR/IcnBattery.c | |
118 cfile_str2ind $SRCDIR/IcnBgdSquares.c | |
119 cfile_str2ind $SRCDIR/IcnBgdTI.c | |
120 cfile_str2ind $SRCDIR/IcnCallBackGround.c | |
121 cfile_str2ind $SRCDIR/IcnCipher.c | |
122 cfile_str2ind $SRCDIR/IcnDefs.c | |
123 cfile_str2ind $SRCDIR/IcnForward.c | |
124 cfile_str2ind $SRCDIR/IcnGprs.c | |
125 cfile_str2ind $SRCDIR/IcnHomezone.c | |
126 cfile_str2ind $SRCDIR/IcnKeylock.c | |
127 cfile_str2ind $SRCDIR/IcnLogoTI.c | |
128 cfile_str2ind $SRCDIR/IcnMainApp.c | |
129 cfile_str2ind $SRCDIR/IcnMainDiv.c | |
130 cfile_str2ind $SRCDIR/IcnMainMsg.c | |
131 cfile_str2ind $SRCDIR/IcnMainPhb.c | |
132 cfile_str2ind $SRCDIR/IcnMainRcl.c | |
133 cfile_str2ind $SRCDIR/IcnMainSec.c | |
134 cfile_str2ind $SRCDIR/IcnMainSet.c | |
135 cfile_str2ind $SRCDIR/IcnMainStk.c | |
136 cfile_str2ind $SRCDIR/IcnMainWap.c | |
137 cfile_str2ind $SRCDIR/IcnMessage.c | |
138 cfile_str2ind $SRCDIR/IcnNetBouygues.c | |
139 cfile_str2ind $SRCDIR/IcnNetChinamobile.c | |
140 cfile_str2ind $SRCDIR/IcnNetFareast.c | |
141 cfile_str2ind $SRCDIR/IcnNetorange.c | |
142 cfile_str2ind $SRCDIR/IcnNetSFR.c | |
143 cfile_str2ind $SRCDIR/IcnNetsonofon.c | |
144 cfile_str2ind $SRCDIR/IcnNetTMobile.c | |
145 cfile_str2ind $SRCDIR/IcnNetVodafone.c | |
146 cfile_str2ind $SRCDIR/IcnNetVodafoneD2.c | |
147 cfile_str2ind $SRCDIR/IcnPopupBgd.c | |
148 cfile_str2ind $SRCDIR/IcnSignal.c | |
149 cfile_str2ind $SRCDIR/IcnVoicemail.c |