annotate scripts/mkcomp-test.sh @ 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 5fbcfd465de0
children 8cf3029429f3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
352f80da6813 ACI compiles!
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 #!/bin/sh
352f80da6813 ACI compiles!
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2
17
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
3 if [ -z "$BUILD_DIR" ]
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
4 then
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
5 BUILD_DIR=build-sb
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
6 fi
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
7
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
8 if [ -z "$USE_STR2IND" ]
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
9 then
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
10 USE_STR2IND=0
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
11 fi
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
12
391
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
13 if [ -z "$CHIPSET" ]
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
14 then
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
15 CHIPSET=10
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
16 fi
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
17
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
18 if [ -z "$DSP" ]
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
19 then
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
20 DSP=36
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
21 fi
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
22
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
23 if [ -z "$RF" ]
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
24 then
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
25 RF=12
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
26 fi
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
27
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
28 if [ -z "$L1_DYN_DSP_DWNLD" ]
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
29 then
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
30 L1_DYN_DSP_DWNLD=1
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
31 fi
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
32
19
88f40f4c829f condat2 vs. condat3 includes selection logic
Mychaela Falconia <falcon@freecalypso.org>
parents: 17
diff changeset
33 if [ -z "$TCSENV" ]
17
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
34 then
19
88f40f4c829f condat2 vs. condat3 includes selection logic
Mychaela Falconia <falcon@freecalypso.org>
parents: 17
diff changeset
35 TCSENV=2
17
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
36 fi
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
37
19
88f40f4c829f condat2 vs. condat3 includes selection logic
Mychaela Falconia <falcon@freecalypso.org>
parents: 17
diff changeset
38 case "$TCSENV" in
88f40f4c829f condat2 vs. condat3 includes selection logic
Mychaela Falconia <falcon@freecalypso.org>
parents: 17
diff changeset
39 2)
88f40f4c829f condat2 vs. condat3 includes selection logic
Mychaela Falconia <falcon@freecalypso.org>
parents: 17
diff changeset
40 CONDAT=condat2
88f40f4c829f condat2 vs. condat3 includes selection logic
Mychaela Falconia <falcon@freecalypso.org>
parents: 17
diff changeset
41 GPF=gpf2
17
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
42 CDGINC=cdg211/cdginc
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
43 CDGPRIM=cdg211/prim
172
2c61607bb3e3 build system: pass ACI version for headers to the component recipes
Mychaela Falconia <falcon@freecalypso.org>
parents: 115
diff changeset
44 ACI=aci2
17
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
45 ;;
19
88f40f4c829f condat2 vs. condat3 includes selection logic
Mychaela Falconia <falcon@freecalypso.org>
parents: 17
diff changeset
46 3)
88f40f4c829f condat2 vs. condat3 includes selection logic
Mychaela Falconia <falcon@freecalypso.org>
parents: 17
diff changeset
47 CONDAT=condat3
88f40f4c829f condat2 vs. condat3 includes selection logic
Mychaela Falconia <falcon@freecalypso.org>
parents: 17
diff changeset
48 GPF=gpf3
422
5fbcfd465de0 mkcomp-test.sh: correct cdginc headers for the hybrid env
Mychaela Falconia <falcon@freecalypso.org>
parents: 391
diff changeset
49 CDGINC=cdg-hybrid/cdginc
5fbcfd465de0 mkcomp-test.sh: correct cdginc headers for the hybrid env
Mychaela Falconia <falcon@freecalypso.org>
parents: 391
diff changeset
50 CDGPRIM=cdg-hybrid/sap-inline
172
2c61607bb3e3 build system: pass ACI version for headers to the component recipes
Mychaela Falconia <falcon@freecalypso.org>
parents: 115
diff changeset
51 ACI=g23m-aci
17
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
52 ;;
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
53 *)
19
88f40f4c829f condat2 vs. condat3 includes selection logic
Mychaela Falconia <falcon@freecalypso.org>
parents: 17
diff changeset
54 echo "Error: bad TCSENV= setting" 1>&2
17
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
55 exit 1
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
56 ;;
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
57 esac
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
58
115
e0cf9a040fef scripts/mkcomp-test.sh: allow MMI setting to be overridden
Mychaela Falconia <falcon@freecalypso.org>
parents: 19
diff changeset
59 if [ -z "$MMI" ]
e0cf9a040fef scripts/mkcomp-test.sh: allow MMI setting to be overridden
Mychaela Falconia <falcon@freecalypso.org>
parents: 19
diff changeset
60 then
e0cf9a040fef scripts/mkcomp-test.sh: allow MMI setting to be overridden
Mychaela Falconia <falcon@freecalypso.org>
parents: 19
diff changeset
61 MMI=0
e0cf9a040fef scripts/mkcomp-test.sh: allow MMI setting to be overridden
Mychaela Falconia <falcon@freecalypso.org>
parents: 19
diff changeset
62 fi
e0cf9a040fef scripts/mkcomp-test.sh: allow MMI setting to be overridden
Mychaela Falconia <falcon@freecalypso.org>
parents: 19
diff changeset
63
10
352f80da6813 ACI compiles!
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
64 GPRS=1
352f80da6813 ACI compiles!
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
65 SRVC=1
352f80da6813 ACI compiles!
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
66
391
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
67 export ACI BUILD_DIR CDGINC CDGPRIM CHIPSET CONDAT DSP GPF GPRS
1da4c0cc9fc2 scripts/mkcomp-test.sh: default the new CHIPSET etc variables
Mychaela Falconia <falcon@freecalypso.org>
parents: 172
diff changeset
68 export L1_DYN_DSP_DWNLD MMI RF SRVC USE_STR2IND
10
352f80da6813 ACI compiles!
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
69
352f80da6813 ACI compiles!
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
70 exec scripts/mk-component.sh "$@"