FreeCalypso > hg > fc-magnetite
annotate scripts/config-headers-new.sh @ 632:d968a3216ba0
new tangomdm build target
TCS211/Magnetite built for target leonardo runs just fine on the Tango-based
Caramel board, but a more proper tangomdm build target is preferable in order
to better market these Tango modems to prospective commercial customers. The
only differences are in GPIO and MCSI config:
* MCSI is enabled in the tangomdm build config.
* GPIO 1 is loudspeaker amplifier control on Leonardo, but on Tango platforms
it can be used for anything. On Caramel boards this GPIO should be
configured as an output driving high.
* GPIO 2 needs to be configured as Calypso input on Leonardo, but on Tango
platforms it can be used for anything. On Caramel boards this GPIO should be
configured as an output, either high or low is OK.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 04 Jan 2020 19:27:41 +0000 |
parents | 92dbfa906f66 |
children | 8cf3029429f3 |
rev | line source |
---|---|
389
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 #!/bin/sh |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 if [ -z "$TARGET" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 echo "Error: TARGET= must be passed via environment" 1>&2 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 exit 1 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 if [ -z "$BUILD_DIR" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 echo "Error: BUILD_DIR= must be passed via environment" 1>&2 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 exit 1 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 # The following vars will already be set when this script is invoked |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 # from configure.sh in a production build, but the following defaulting logic |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 # helps with manual invokation during development. |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 if [ -z "$CHIPSET" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 CHIPSET=10 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 export CHIPSET |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 if [ -z "$DSP" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 DSP=36 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 export DSP |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 if [ -z "$RF" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 RF=12 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 export RF |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 if [ -z "$AMR" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 AMR=1 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 export AMR |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 if [ -z "$L1_DYN_DSP_DWNLD" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 L1_DYN_DSP_DWNLD=1 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
47 export L1_DYN_DSP_DWNLD |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
48 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
49 if [ -z "$L1_VOICE_MEMO_AMR" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
50 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
51 L1_VOICE_MEMO_AMR=1 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
52 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
53 export L1_VOICE_MEMO_AMR |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
54 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
55 if [ -z "$MELODY_E2" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 MELODY_E2=1 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 export MELODY_E2 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
61 if [ -z "$SPEECH_RECO" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
62 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 SPEECH_RECO=1 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
64 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
65 export SPEECH_RECO |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
66 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67 if [ -z "$GPRS" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
68 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
69 GPRS=1 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
70 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
71 export GPRS |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
72 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
73 if [ -z "$SRVC" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
74 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
75 SRVC=1 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
76 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77 export SRVC |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
79 if [ -z "$ATP_STATE" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
80 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
81 ATP_STATE=0 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
82 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
83 export ATP_STATE |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
84 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
85 if [ -z "$FCHG_STATE" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
86 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
87 FCHG_STATE=1 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
88 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
89 export FCHG_STATE |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
90 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
91 if [ -z "$LCC_STATE" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
92 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
93 LCC_STATE=0 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
94 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
95 export LCC_STATE |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
96 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
97 if [ -z "$MKS_STATE" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
98 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
99 MKS_STATE=0 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
100 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
101 export MKS_STATE |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
102 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
103 if [ -z "$PWR_STATE" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
104 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
105 PWR_STATE=0 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
106 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
107 export PWR_STATE |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
108 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
109 if [ -z "$R2D_STATE" ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
110 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
111 R2D_STATE=1 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
112 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
113 export R2D_STATE |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
114 |
451
fd1d9063ad40
config mechanism: added ability to build D-Sample B&W UI configuration
Mychaela Falconia <falcon@freecalypso.org>
parents:
389
diff
changeset
|
115 if [ -z "$DSAMPLE_FULL_COLOR" ] |
fd1d9063ad40
config mechanism: added ability to build D-Sample B&W UI configuration
Mychaela Falconia <falcon@freecalypso.org>
parents:
389
diff
changeset
|
116 then |
fd1d9063ad40
config mechanism: added ability to build D-Sample B&W UI configuration
Mychaela Falconia <falcon@freecalypso.org>
parents:
389
diff
changeset
|
117 DSAMPLE_FULL_COLOR=1 |
fd1d9063ad40
config mechanism: added ability to build D-Sample B&W UI configuration
Mychaela Falconia <falcon@freecalypso.org>
parents:
389
diff
changeset
|
118 fi |
fd1d9063ad40
config mechanism: added ability to build D-Sample B&W UI configuration
Mychaela Falconia <falcon@freecalypso.org>
parents:
389
diff
changeset
|
119 export DSAMPLE_FULL_COLOR |
fd1d9063ad40
config mechanism: added ability to build D-Sample B&W UI configuration
Mychaela Falconia <falcon@freecalypso.org>
parents:
389
diff
changeset
|
120 |
456
3d772a6268c4
config mechanism: allow TR_BAUD_CONFIG to be set on ./configure.sh line
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
121 if [ -z "$TR_BAUD_CONFIG" ] |
3d772a6268c4
config mechanism: allow TR_BAUD_CONFIG to be set on ./configure.sh line
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
122 then |
3d772a6268c4
config mechanism: allow TR_BAUD_CONFIG to be set on ./configure.sh line
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
123 TR_BAUD_CONFIG=TR_BAUD_115200 |
3d772a6268c4
config mechanism: allow TR_BAUD_CONFIG to be set on ./configure.sh line
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
124 fi |
3d772a6268c4
config mechanism: allow TR_BAUD_CONFIG to be set on ./configure.sh line
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
125 export TR_BAUD_CONFIG |
3d772a6268c4
config mechanism: allow TR_BAUD_CONFIG to be set on ./configure.sh line
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
126 |
389
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
127 # Derived settings only for the generation of *.cfg headers |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
128 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
129 case "$RF" in |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
130 10) |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
131 RF_FAM=10 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
132 RF_PA=0 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
133 RF_PG=0 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
134 ;; |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
135 12) |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
136 RF_FAM=12 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
137 RF_PA=2 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
138 RF_PG=2 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
139 ;; |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
140 *) |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
141 echo "Error: RF=$RF setting not understood" 1>&2 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
142 exit 1 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
143 esac |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
144 export RF_FAM RF_PA RF_PG |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
145 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
146 case "$GPRS" in |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
147 0) |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
148 L1_GPRS=0 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
149 PMODE=1 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
150 ;; |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
151 1) |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
152 L1_GPRS=1 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
153 PMODE=2 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
154 ;; |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
155 *) |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
156 echo "Error: GPRS=$GPRS setting not understood" 1>&2 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
157 exit 1 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
158 esac |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
159 export L1_GPRS PMODE |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
160 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
161 if [ "$SRVC" != 0 ] |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
162 then |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
163 IDS=1 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
164 else |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
165 IDS=0 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
166 fi |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
167 export IDS |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
168 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
169 # do it! |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
170 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
171 set -e |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
172 |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
173 rm -rf $BUILD_DIR/config |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
174 mkdir $BUILD_DIR/config |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
175 helpers/cfg-hdr-gen scripts/cfg-template $BUILD_DIR/config |
5addc2943fa2
scripts/config-headers-new.sh: written, to be tested
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
176 scripts/make-rv-swe-hdr.sh > $BUILD_DIR/config/rv_swe.h |
602
92dbfa906f66
fc-target.cfg config header renamed to more sensible fc-target.h
Mychaela Falconia <falcon@freecalypso.org>
parents:
456
diff
changeset
|
177 cp targets/$TARGET.h $BUILD_DIR/config/fc-target.h |