annotate scripts/config-headers.sh @ 297:8dfdf88d632f

BUZM SWE initial implementation
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 29 Mar 2022 03:45:41 +0000
parents e17bdedfbf2b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 #!/bin/sh
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 if [ -z "$TARGET" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 echo "Error: TARGET= must be passed via environment" 1>&2
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 exit 1
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 if [ -z "$BUILD_DIR" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 echo "Error: BUILD_DIR= must be passed via environment" 1>&2
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 exit 1
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 # The following vars will already be set when this script is invoked
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 # from configure.sh in a production build, but the following defaulting logic
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 # helps with manual invokation during development.
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 if [ -z "$CHIPSET" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 CHIPSET=10
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 export CHIPSET
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 if [ -z "$DSP" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 DSP=36
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 export DSP
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 if [ -z "$RF" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 RF=12
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 export RF
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37 if [ -z "$AMR" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
38 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
39 AMR=1
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
40 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
41 export AMR
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
42
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
43 if [ -z "$L1_DYN_DSP_DWNLD" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
44 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
45 L1_DYN_DSP_DWNLD=1
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
46 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
47 export L1_DYN_DSP_DWNLD
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
48
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
49 if [ -z "$L1_VOICE_MEMO_AMR" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
50 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
51 L1_VOICE_MEMO_AMR=1
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
52 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
53 export L1_VOICE_MEMO_AMR
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
54
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
55 if [ -z "$MELODY_E2" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
56 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
57 MELODY_E2=1
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
58 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
59 export MELODY_E2
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
60
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
61 if [ -z "$SPEECH_RECO" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
62 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
63 SPEECH_RECO=1
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
64 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
65 export SPEECH_RECO
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
66
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
67 if [ -z "$GPRS" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
68 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
69 GPRS=1
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
70 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
71 export GPRS
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
72
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
73 if [ -z "$SRVC" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
74 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
75 SRVC=1
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
76 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
77 export SRVC
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
78
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
79 if [ -z "$ATP_STATE" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
80 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
81 ATP_STATE=0
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
82 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
83 export ATP_STATE
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
84
297
8dfdf88d632f BUZM SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 294
diff changeset
85 if [ -z "$BUZM_STATE" ]
8dfdf88d632f BUZM SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 294
diff changeset
86 then
8dfdf88d632f BUZM SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 294
diff changeset
87 BUZM_STATE=1
8dfdf88d632f BUZM SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 294
diff changeset
88 fi
8dfdf88d632f BUZM SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 294
diff changeset
89 export BUZM_STATE
8dfdf88d632f BUZM SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 294
diff changeset
90
7
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
91 if [ -z "$FCHG_STATE" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
92 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
93 FCHG_STATE=1
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
94 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
95 export FCHG_STATE
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
96
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
97 if [ -z "$LCC_STATE" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
98 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
99 LCC_STATE=0
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
100 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
101 export LCC_STATE
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
102
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
103 if [ -z "$MKS_STATE" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
104 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
105 MKS_STATE=0
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
106 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
107 export MKS_STATE
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
108
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
109 if [ -z "$PWR_STATE" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
110 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
111 PWR_STATE=0
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
112 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
113 export PWR_STATE
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
114
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
115 if [ -z "$R2D_STATE" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
116 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
117 R2D_STATE=1
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
118 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
119 export R2D_STATE
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
120
294
e17bdedfbf2b VIBR SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 235
diff changeset
121 if [ -z "$VIBR_STATE" ]
e17bdedfbf2b VIBR SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 235
diff changeset
122 then
e17bdedfbf2b VIBR SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 235
diff changeset
123 VIBR_STATE=1
e17bdedfbf2b VIBR SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 235
diff changeset
124 fi
e17bdedfbf2b VIBR SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 235
diff changeset
125 export VIBR_STATE
e17bdedfbf2b VIBR SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 235
diff changeset
126
8
99ae5bf8cab5 scripts/config-headers.sh: R2D_EMBEDDED_LCD change
Mychaela Falconia <falcon@freecalypso.org>
parents: 7
diff changeset
127 if [ -z "$R2D_EMBEDDED_LCD" ]
7
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
128 then
8
99ae5bf8cab5 scripts/config-headers.sh: R2D_EMBEDDED_LCD change
Mychaela Falconia <falcon@freecalypso.org>
parents: 7
diff changeset
129 R2D_EMBEDDED_LCD=7
7
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
130 fi
8
99ae5bf8cab5 scripts/config-headers.sh: R2D_EMBEDDED_LCD change
Mychaela Falconia <falcon@freecalypso.org>
parents: 7
diff changeset
131 export R2D_EMBEDDED_LCD
7
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
132
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
133 if [ -z "$TI_PROFILER" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
134 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
135 TI_PROFILER=0
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
136 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
137 export TI_PROFILER
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
138
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
139 if [ -z "$TR_BAUD_CONFIG" ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
140 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
141 TR_BAUD_CONFIG=TR_BAUD_115200
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
142 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
143 export TR_BAUD_CONFIG
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
144
235
ee04ca45053d config system: add FCBM
Mychaela Falconia <falcon@freecalypso.org>
parents: 8
diff changeset
145 # FCBM_STATE is a derived setting from $MMI in normal configure.sh operation,
ee04ca45053d config system: add FCBM
Mychaela Falconia <falcon@freecalypso.org>
parents: 8
diff changeset
146 # and it also defaults to 0 (disabled) for manual invokation.
ee04ca45053d config system: add FCBM
Mychaela Falconia <falcon@freecalypso.org>
parents: 8
diff changeset
147
ee04ca45053d config system: add FCBM
Mychaela Falconia <falcon@freecalypso.org>
parents: 8
diff changeset
148 if [ "$MMI" = 2 ]
ee04ca45053d config system: add FCBM
Mychaela Falconia <falcon@freecalypso.org>
parents: 8
diff changeset
149 then
ee04ca45053d config system: add FCBM
Mychaela Falconia <falcon@freecalypso.org>
parents: 8
diff changeset
150 FCBM_STATE=1
ee04ca45053d config system: add FCBM
Mychaela Falconia <falcon@freecalypso.org>
parents: 8
diff changeset
151 else
ee04ca45053d config system: add FCBM
Mychaela Falconia <falcon@freecalypso.org>
parents: 8
diff changeset
152 FCBM_STATE=0
ee04ca45053d config system: add FCBM
Mychaela Falconia <falcon@freecalypso.org>
parents: 8
diff changeset
153 fi
ee04ca45053d config system: add FCBM
Mychaela Falconia <falcon@freecalypso.org>
parents: 8
diff changeset
154 export FCBM_STATE
ee04ca45053d config system: add FCBM
Mychaela Falconia <falcon@freecalypso.org>
parents: 8
diff changeset
155
7
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
156 # Derived settings only for the generation of *.cfg headers
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
157
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
158 case "$RF" in
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
159 10)
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
160 RF_FAM=10
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
161 RF_PA=0
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
162 RF_PG=0
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
163 ;;
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
164 12)
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
165 RF_FAM=12
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
166 RF_PA=2
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
167 RF_PG=2
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
168 ;;
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
169 *)
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
170 echo "Error: RF=$RF setting not understood" 1>&2
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
171 exit 1
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
172 esac
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
173 export RF_FAM RF_PA RF_PG
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
174
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
175 case "$GPRS" in
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
176 0)
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
177 L1_GPRS=0
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
178 PMODE=1
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
179 ;;
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
180 1)
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
181 L1_GPRS=1
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
182 PMODE=2
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
183 ;;
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
184 *)
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
185 echo "Error: GPRS=$GPRS setting not understood" 1>&2
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
186 exit 1
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
187 esac
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
188 export L1_GPRS PMODE
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
189
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
190 if [ "$SRVC" != 0 ]
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
191 then
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
192 IDS=1
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
193 else
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
194 IDS=0
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
195 fi
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
196 export IDS
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
197
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
198 # do it!
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
199
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
200 set -e
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
201
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
202 rm -rf $BUILD_DIR/config
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
203 mkdir $BUILD_DIR/config
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
204 helpers/cfg-hdr-gen scripts/cfg-template $BUILD_DIR/config
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
205 scripts/make-rv-swe-hdr.sh > $BUILD_DIR/config/rv_swe.h
d6f8d6efdf5b scripts/config-headers.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
206 cp targets/$TARGET.h $BUILD_DIR/config/fc-target.h