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