FreeCalypso > hg > fc-selenite
annotate configure-gcc.sh @ 125:e32860d28518
doc/Toolchain-setup-470: same updates as in Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 07 Nov 2018 09:41:46 +0000 |
parents | 7f0681afe430 |
children | 11aef23ec647 |
rev | line source |
---|---|
93
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 #!/bin/sh |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 set -e |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 if [ ! -f configure-gcc.sh ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 echo "This script needs to be run from the top of the source tree" 1>&2 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 exit 1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 if [ ! -f helpers/makeline ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 echo "Please run make in the helpers directory first" 1>&2 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 exit 1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 # start looking at our invokation line |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 if [ "$1" = --clean ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 clean_flag=1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 shift |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 else |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 clean_flag=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 if [ $# -lt 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 echo "usage: $0 [--clean] target [vars]" 1>&2 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 exit 1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 TARGET="$1" |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 if [ ! -f "targets/$TARGET.conf" -o ! -f "targets/$TARGET.h" ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 echo "Error: target $TARGET not known" 1>&2 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 exit 1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 if [ ! -f "targets/$TARGET.m4" ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 echo "Error: target $TARGET is not supported with gcc" 1>&2 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 # target defaults that can be overridden by $TARGET.conf |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
47 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
48 CHIPSET=10 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
49 DSP=36 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
50 RF=12 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
51 DISABLE_SLEEP=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
52 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
53 . "targets/$TARGET.conf" |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
54 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
55 # settings derived from the target-defined DSP version |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 case "$DSP" in |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 33) |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 AMR=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 L1_DYN_DSP_DWNLD=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
61 L1_VOICE_MEMO_AMR=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
62 MELODY_E2=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 SPEECH_RECO=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
64 ;; |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
65 34) |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
66 AMR=1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67 L1_DYN_DSP_DWNLD=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
68 L1_VOICE_MEMO_AMR=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
69 MELODY_E2=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
70 SPEECH_RECO=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
71 ;; |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
72 36) |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
73 AMR=1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
74 L1_DYN_DSP_DWNLD=1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
75 L1_VOICE_MEMO_AMR=1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
76 MELODY_E2=1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77 SPEECH_RECO=1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 ;; |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
79 *) |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
80 echo "Error: DSP=$DSP setting not understood" 1>&2 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
81 exit 1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
82 esac |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
83 |
119
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
84 # RVTMUX config default based on target |
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
85 |
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
86 if [ "$TARGET" = c11x -o "$TARGET" = c139 -o "$TARGET" = c155 ] |
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
87 then |
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
88 RVTMUX_ON_MODEM=1 |
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
89 else |
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
90 RVTMUX_ON_MODEM=0 |
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
91 fi |
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
92 |
93
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
93 # miscellaneous configurable feature settings |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
94 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
95 ALLOW_CSIM_GSM=1 |
105
5c4db73d289a
build system support for memory supervision
Mychaela Falconia <falcon@freecalypso.org>
parents:
93
diff
changeset
|
96 MEMSUPER=0 |
93
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
97 SERIAL_DYNAMIC_SWITCH=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
98 TR_BAUD_CONFIG=TR_BAUD_115200 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
99 |
106
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
100 SUFFIX= |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
101 |
93
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
102 # allow the user to override these defaults |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
103 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
104 shift |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
105 while [ $# != 0 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
106 do |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
107 eval "$1" |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
108 shift |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
109 done |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
110 |
106
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
111 # validate key settings and build configuration name |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
112 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
113 case "$SRVC" in |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
114 0) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
115 CONFIG_NAME=vo |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
116 ;; |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
117 1) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
118 CONFIG_NAME=fd |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
119 ;; |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
120 2) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
121 CONFIG_NAME=da |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
122 ;; |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
123 *) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
124 echo "Error: SRVC=$SRVC setting is invalid" 1>&2 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
125 exit 1 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
126 esac |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
127 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
128 case "$GPRS" in |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
129 0) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
130 ;; |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
131 1) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
132 CONFIG_NAME=gprs |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
133 ;; |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
134 *) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
135 echo "Error: GPRS=$GPRS setting is invalid" 1>&2 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
136 exit 1 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
137 esac |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
138 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
139 case "$FCHG_STATE" in |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
140 0) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
141 ;; |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
142 1) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
143 CONFIG_NAME="$CONFIG_NAME-chg" |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
144 ;; |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
145 *) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
146 echo "Error: FCHG_STATE=$FCHG_STATE setting is invalid" 1>&2 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
147 exit 1 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
148 esac |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
149 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
150 CONFIG_NAME="$CONFIG_NAME$SUFFIX-gcc" |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
151 BUILD_DIR="build-$TARGET-$CONFIG_NAME" |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
152 |
93
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
153 echo "Building firmware for target $TARGET in $BUILD_DIR" |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
154 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
155 if [ "$clean_flag" = 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
156 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
157 rm -rf $BUILD_DIR |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
158 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
159 mkdir -p $BUILD_DIR |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
160 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
161 # shell functions to be used in the configuration recipe |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
162 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
163 build_lib() { |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
164 if [ $# != 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
165 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
166 echo "Error: build_lib takes 1 argument" 1>&2 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
167 exit 1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
168 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
169 scripts/mk-component-gcc.sh "$1" |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
170 SUBDIR="$SUBDIR $1" |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
171 LIBS="$LIBS $1/$1.a" |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
172 } |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
173 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
174 # invoke the configuration recipe |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
175 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
176 export BUILD_DIR TARGET |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
177 export CHIPSET DSP RF |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
178 export AMR L1_DYN_DSP_DWNLD L1_VOICE_MEMO_AMR MELODY_E2 SPEECH_RECO |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
179 export DISABLE_SLEEP |
119
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
180 export ALLOW_CSIM_GSM MEMSUPER |
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
181 export RVTMUX_ON_MODEM SERIAL_DYNAMIC_SWITCH TR_BAUD_CONFIG |
93
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
182 export GPRS SRVC FCHG_STATE |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
183 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
184 scripts/config-headers.sh |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
185 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
186 SUBDIR= |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
187 LIBS= |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
188 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
189 build_lib ccddata |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
190 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
191 # ACI libs |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
192 build_lib aci |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
193 build_lib aciext |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
194 build_lib aci_dti_mng |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
195 build_lib atiext |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
196 build_lib comlib |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
197 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
198 if [ "$GPRS" = 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
199 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
200 build_lib config_gprs_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
201 build_lib config_gprs_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
202 else |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
203 build_lib config_gsm_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
204 build_lib config_gsm_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
205 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
206 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
207 # G23M protocol stack libs |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
208 build_lib alr |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
209 build_lib cc |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
210 build_lib dl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
211 build_lib dti |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
212 build_lib l1_pei |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
213 build_lib mm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
214 build_lib rr |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
215 build_lib sim_b_lib |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
216 build_lib sms |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
217 build_lib ss |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
218 build_lib uart_b_lib |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
219 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
220 # fax and data |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
221 if [ "$SRVC" != 0 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
222 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
223 build_lib l2r |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
224 build_lib ra |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
225 build_lib rlp |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
226 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
227 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
228 # fax specific |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
229 if [ "$SRVC" = 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
230 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
231 build_lib fad |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
232 build_lib t30 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
233 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
234 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
235 # GPRS specific |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
236 if [ "$GPRS" = 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
237 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
238 build_lib cci |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
239 build_lib cci_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
240 build_lib cl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
241 build_lib gmm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
242 build_lib grlc |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
243 build_lib grlc_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
244 build_lib grr |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
245 build_lib llc |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
246 build_lib sm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
247 build_lib sndcp |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
248 build_lib ppp |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
249 build_lib ppp_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
250 build_lib upm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
251 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
252 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
253 # Condat drivers |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
254 build_lib gdi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
255 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
256 # GPF |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
257 build_lib ccd_na7_db |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
258 build_lib frame_na7_db_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
259 build_lib frame_na7_db_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
260 build_lib misc_na7_db_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
261 build_lib misc_na7_db_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
262 build_lib osx_na7_db |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
263 build_lib tif_na7_db_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
264 build_lib tif_na7_db_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
265 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
266 # core drivers |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
267 build_lib drivers_flash |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
268 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
269 # Layer 1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
270 build_lib tpudrv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
271 build_lib l1_ext |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
272 build_lib l1_int |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
273 build_lib l1_custom_ext |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
274 build_lib l1_custom_int |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
275 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
276 build_lib riviera_core_flash |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
277 build_lib riviera_cust_flash |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
278 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
279 # services |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
280 build_lib audio |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
281 build_lib audio_bgd |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
282 build_lib cst |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
283 build_lib dar |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
284 build_lib dar_gbl_var |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
285 build_lib etm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
286 build_lib lls |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
287 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
288 # app drivers |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
289 build_lib abb |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
290 build_lib buzzer |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
291 if [ "$FCHG_STATE" = 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
292 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
293 build_lib fchg |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
294 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
295 build_lib ffs |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
296 build_lib ffs_drv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
297 build_lib ffs_pcm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
298 build_lib kpd |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
299 build_lib power |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
300 build_lib rtc_drv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
301 build_lib sim_drv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
302 build_lib spi_drv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
303 build_lib uart_drv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
304 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
305 # system glue |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
306 build_lib main |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
307 build_lib main_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
308 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
309 # Nucleus |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
310 build_lib nucleus_flash |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
311 build_lib nucleus_intram |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
312 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
313 # selective libc replacement |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
314 build_lib libsys_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
315 build_lib libsys_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
316 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
317 # generate the top level Makefile! |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
318 |
106
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
319 helpers/makeline def CONFIG_NAME $CONFIG_NAME > $BUILD_DIR/Makefile |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
320 echo >> $BUILD_DIR/Makefile |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
321 helpers/makeline def TARGET $TARGET >> $BUILD_DIR/Makefile |
93
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
322 echo >> $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
323 helpers/makeline def SUBDIR $SUBDIR >> $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
324 echo >> $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
325 helpers/makeline def LIBS $LIBS >> $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
326 echo >> $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
327 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
328 helpers/makeline def FLASH_BASE_ADDR $FLASH_BASE_ADDR >> $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
329 helpers/makeline def FLASH_SECTOR_SIZE $FLASH_SECTOR_SIZE >> $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
330 echo >> $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
331 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
332 cat gcc/makefile-body >> $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
333 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
334 # All done! |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
335 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
336 echo "Run make in $BUILD_DIR to compile the firmware" |