FreeCalypso > hg > fc-selenite
annotate configure-gcc.sh @ 94:e5cbc745543b
gcc/makefile-body: a few fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 21 Jul 2018 01:03:53 +0000 |
parents | 26237514cae7 |
children | 5c4db73d289a |
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 BUILD_DIR="build-$TARGET-gcc" |
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 # settings derived from the target-defined DSP version |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 case "$DSP" in |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 33) |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
61 AMR=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
62 L1_DYN_DSP_DWNLD=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 L1_VOICE_MEMO_AMR=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
64 MELODY_E2=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
65 SPEECH_RECO=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
66 ;; |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67 34) |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
68 AMR=1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
69 L1_DYN_DSP_DWNLD=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
70 L1_VOICE_MEMO_AMR=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
71 MELODY_E2=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
72 SPEECH_RECO=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
73 ;; |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
74 36) |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
75 AMR=1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
76 L1_DYN_DSP_DWNLD=1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77 L1_VOICE_MEMO_AMR=1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 MELODY_E2=1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
79 SPEECH_RECO=1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
80 ;; |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
81 *) |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
82 echo "Error: DSP=$DSP setting not understood" 1>&2 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
83 exit 1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
84 esac |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
85 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
86 # miscellaneous configurable feature settings |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
87 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
88 ALLOW_CSIM_GSM=1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
89 SERIAL_DYNAMIC_SWITCH=0 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
90 TR_BAUD_CONFIG=TR_BAUD_115200 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
91 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
92 # allow the user to override these defaults |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
93 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
94 shift |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
95 while [ $# != 0 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
96 do |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
97 eval "$1" |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
98 shift |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
99 done |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
100 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
101 echo "Building firmware for target $TARGET in $BUILD_DIR" |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
102 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
103 if [ "$clean_flag" = 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
104 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
105 rm -rf $BUILD_DIR |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
106 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
107 mkdir -p $BUILD_DIR |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
108 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
109 # shell functions to be used in the configuration recipe |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
110 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
111 build_lib() { |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
112 if [ $# != 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
113 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
114 echo "Error: build_lib takes 1 argument" 1>&2 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
115 exit 1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
116 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
117 scripts/mk-component-gcc.sh "$1" |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
118 SUBDIR="$SUBDIR $1" |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
119 LIBS="$LIBS $1/$1.a" |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
120 } |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
121 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
122 # invoke the configuration recipe |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
123 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
124 export BUILD_DIR TARGET |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
125 export CHIPSET DSP RF |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
126 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
|
127 export DISABLE_SLEEP |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
128 export ALLOW_CSIM_GSM SERIAL_DYNAMIC_SWITCH TR_BAUD_CONFIG |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
129 export GPRS SRVC FCHG_STATE |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
130 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
131 scripts/config-headers.sh |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
132 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
133 SUBDIR= |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
134 LIBS= |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
135 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
136 build_lib ccddata |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
137 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
138 # ACI libs |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
139 build_lib aci |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
140 build_lib aciext |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
141 build_lib aci_dti_mng |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
142 build_lib atiext |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
143 build_lib comlib |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
144 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
145 if [ "$GPRS" = 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
146 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
147 build_lib config_gprs_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
148 build_lib config_gprs_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
149 else |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
150 build_lib config_gsm_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
151 build_lib config_gsm_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
152 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
153 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
154 # G23M protocol stack libs |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
155 build_lib alr |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
156 build_lib cc |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
157 build_lib dl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
158 build_lib dti |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
159 build_lib l1_pei |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
160 build_lib mm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
161 build_lib rr |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
162 build_lib sim_b_lib |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
163 build_lib sms |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
164 build_lib ss |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
165 build_lib uart_b_lib |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
166 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
167 # fax and data |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
168 if [ "$SRVC" != 0 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
169 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
170 build_lib l2r |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
171 build_lib ra |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
172 build_lib rlp |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
173 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
174 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
175 # fax specific |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
176 if [ "$SRVC" = 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
177 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
178 build_lib fad |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
179 build_lib t30 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
180 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
181 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
182 # GPRS specific |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
183 if [ "$GPRS" = 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
184 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
185 build_lib cci |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
186 build_lib cci_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
187 build_lib cl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
188 build_lib gmm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
189 build_lib grlc |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
190 build_lib grlc_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
191 build_lib grr |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
192 build_lib llc |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
193 build_lib sm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
194 build_lib sndcp |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
195 build_lib ppp |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
196 build_lib ppp_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
197 build_lib upm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
198 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
199 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
200 # Condat drivers |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
201 build_lib gdi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
202 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
203 # GPF |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
204 build_lib ccd_na7_db |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
205 build_lib frame_na7_db_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
206 build_lib frame_na7_db_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
207 build_lib misc_na7_db_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
208 build_lib misc_na7_db_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
209 build_lib osx_na7_db |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
210 build_lib tif_na7_db_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
211 build_lib tif_na7_db_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
212 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
213 # core drivers |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
214 build_lib drivers_flash |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
215 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
216 # Layer 1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
217 build_lib tpudrv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
218 build_lib l1_ext |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
219 build_lib l1_int |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
220 build_lib l1_custom_ext |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
221 build_lib l1_custom_int |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
222 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
223 build_lib riviera_core_flash |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
224 build_lib riviera_cust_flash |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
225 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
226 # services |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
227 build_lib audio |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
228 build_lib audio_bgd |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
229 build_lib cst |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
230 build_lib dar |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
231 build_lib dar_gbl_var |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
232 build_lib etm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
233 build_lib lls |
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 # app drivers |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
236 build_lib abb |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
237 build_lib buzzer |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
238 if [ "$FCHG_STATE" = 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
239 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
240 build_lib fchg |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
241 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
242 build_lib ffs |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
243 build_lib ffs_drv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
244 build_lib ffs_pcm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
245 build_lib kpd |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
246 build_lib power |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
247 build_lib rtc_drv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
248 build_lib sim_drv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
249 build_lib spi_drv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
250 build_lib uart_drv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
251 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
252 # system glue |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
253 build_lib main |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
254 build_lib main_ir |
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 # Nucleus |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
257 build_lib nucleus_flash |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
258 build_lib nucleus_intram |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
259 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
260 # selective libc replacement |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
261 build_lib libsys_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
262 build_lib libsys_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
263 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
264 # generate the top level Makefile! |
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 helpers/makeline def TARGET $TARGET > $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
267 echo >> $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
268 helpers/makeline def SUBDIR $SUBDIR >> $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
269 echo >> $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
270 helpers/makeline def LIBS $LIBS >> $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
271 echo >> $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
272 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
273 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
|
274 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
|
275 echo >> $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
276 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
277 cat gcc/makefile-body >> $BUILD_DIR/Makefile |
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 # All done! |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
280 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
281 echo "Run make in $BUILD_DIR to compile the firmware" |