FreeCalypso > hg > fc-selenite
annotate configure-tms470.sh @ 122:7c68000b87cf
targets: c155 added
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 07 Nov 2018 06:55:49 +0000 |
parents | 7f0681afe430 |
children | 11aef23ec647 |
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 |
98
5fe5853f4e63
old configure.sh script is now configure-tms470.sh
Mychaela Falconia <falcon@freecalypso.org>
parents:
45
diff
changeset
|
5 if [ ! -f configure-tms470.sh ] |
44
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 # settings derived from the target-defined DSP version |
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 case "$DSP" in |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
53 33) |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
54 AMR=0 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
55 L1_DYN_DSP_DWNLD=0 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 L1_VOICE_MEMO_AMR=0 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 MELODY_E2=0 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 SPEECH_RECO=0 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 ;; |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 34) |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
61 AMR=1 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
62 L1_DYN_DSP_DWNLD=0 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 L1_VOICE_MEMO_AMR=0 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
64 MELODY_E2=0 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
65 SPEECH_RECO=0 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
66 ;; |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67 36) |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
68 AMR=1 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
69 L1_DYN_DSP_DWNLD=1 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
70 L1_VOICE_MEMO_AMR=1 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
71 MELODY_E2=1 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
72 SPEECH_RECO=1 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
73 ;; |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
74 *) |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
75 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
|
76 exit 1 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77 esac |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 |
119
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
79 # RVTMUX config default based on target |
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
80 |
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
81 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:
118
diff
changeset
|
82 then |
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
83 RVTMUX_ON_MODEM=1 |
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
84 else |
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
85 RVTMUX_ON_MODEM=0 |
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
86 fi |
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
87 |
44
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
88 # miscellaneous configurable feature settings |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
89 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
90 ALLOW_CSIM_GSM=1 |
105
5c4db73d289a
build system support for memory supervision
Mychaela Falconia <falcon@freecalypso.org>
parents:
98
diff
changeset
|
91 MEMSUPER=0 |
44
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
92 SERIAL_DYNAMIC_SWITCH=0 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
93 TR_BAUD_CONFIG=TR_BAUD_115200 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
94 |
106
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
95 SUFFIX= |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
96 |
44
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
97 # allow the user to override these defaults |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
98 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
99 shift |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
100 while [ $# != 0 ] |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
101 do |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
102 eval "$1" |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
103 shift |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
104 done |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
105 |
106
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
106 # validate key settings and build configuration name |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
107 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
108 case "$SRVC" in |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
109 0) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
110 CONFIG_NAME=vo |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
111 ;; |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
112 1) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
113 CONFIG_NAME=fd |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
114 ;; |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
115 2) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
116 CONFIG_NAME=da |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
117 ;; |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
118 *) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
119 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
|
120 exit 1 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
121 esac |
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 case "$GPRS" in |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
124 0) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
125 ;; |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
126 1) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
127 CONFIG_NAME=gprs |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
128 ;; |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
129 *) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
130 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
|
131 exit 1 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
132 esac |
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 case "$FCHG_STATE" in |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
135 0) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
136 ;; |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
137 1) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
138 CONFIG_NAME="$CONFIG_NAME-chg" |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
139 ;; |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
140 *) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
141 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
|
142 exit 1 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
143 esac |
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 CONFIG_NAME="$CONFIG_NAME$SUFFIX-470" |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
146 BUILD_DIR="build-$TARGET-$CONFIG_NAME" |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
147 |
44
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
148 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
|
149 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
150 if [ "$clean_flag" = 1 ] |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
151 then |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
152 rm -rf $BUILD_DIR |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
153 fi |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
154 mkdir -p $BUILD_DIR |
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 : > $BUILD_DIR/lcfgen |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
157 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
158 # 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
|
159 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
160 build_lib() { |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
161 if [ $# != 1 ] |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
162 then |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
163 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
|
164 exit 1 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
165 fi |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
166 scripts/mk-component.sh "$1" |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
167 SUBDIR="$SUBDIR $1" |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
168 current_lib=$1/$1.lib |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
169 LIBS="$LIBS $current_lib" |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
170 } |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
171 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
172 rts_blob_lib() { |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
173 if [ $# != 1 ] |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
174 then |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
175 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
|
176 exit 1 |
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 current_lib="../tms470/rts/$1.lib" |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
179 LIBS="$LIBS $current_lib" |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
180 } |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
181 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
182 lib_link_magic() { |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
183 if [ $# != 1 ] |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
184 then |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
185 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
|
186 exit 1 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
187 fi |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
188 if [ -z "$current_lib" ] |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
189 then |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
190 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
|
191 exit 1 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
192 fi |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
193 SPECIAL_LINK_LIBS="$SPECIAL_LINK_LIBS $current_lib" |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
194 echo "$1" >> $BUILD_DIR/lcfgen |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
195 } |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
196 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
197 # invoke the configuration recipe |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
198 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
199 export BUILD_DIR TARGET |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
200 export CHIPSET DSP RF |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
201 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
|
202 export DISABLE_SLEEP |
119
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
203 export ALLOW_CSIM_GSM MEMSUPER |
7f0681afe430
RVTMUX_ON_MODEM config var brought over from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
204 export RVTMUX_ON_MODEM SERIAL_DYNAMIC_SWITCH TR_BAUD_CONFIG |
44
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
205 export GPRS SRVC FCHG_STATE |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
206 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
207 scripts/config-headers.sh |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
208 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
209 SUBDIR= |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
210 LIBS= |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
211 SPECIAL_LINK_LIBS= |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
212 current_lib= |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
213 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
214 build_lib ccddata |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
215 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
216 # ACI libs |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
217 build_lib aci |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
218 build_lib aciext |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
219 build_lib aci_dti_mng |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
220 build_lib atiext |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
221 build_lib comlib |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
222 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
223 if [ "$GPRS" = 1 ] |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
224 then |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
225 build_lib config_gprs_fl |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
226 build_lib config_gprs_ir |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
227 else |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
228 build_lib config_gsm_fl |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
229 build_lib config_gsm_ir |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
230 fi |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
231 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
|
232 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
233 # G23M protocol stack libs |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
234 build_lib alr |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
235 build_lib cc |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
236 build_lib dl |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
237 build_lib dti |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
238 build_lib l1_pei |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
239 build_lib mm |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
240 build_lib rr |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
241 build_lib sim_b_lib |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
242 build_lib sms |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
243 build_lib ss |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
244 build_lib uart_b_lib |
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 # fax and data |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
247 if [ "$SRVC" != 0 ] |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
248 then |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
249 build_lib l2r |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
250 build_lib ra |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
251 build_lib rlp |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
252 fi |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
253 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
254 # fax specific |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
255 if [ "$SRVC" = 1 ] |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
256 then |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
257 build_lib fad |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
258 build_lib t30 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
259 fi |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
260 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
261 # GPRS specific |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
262 if [ "$GPRS" = 1 ] |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
263 then |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
264 build_lib cci |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
265 build_lib cci_ir |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
266 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
|
267 build_lib cl |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
268 build_lib gmm |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
269 build_lib grlc |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
270 build_lib grlc_ir |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
271 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
|
272 build_lib grr |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
273 build_lib llc |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
274 build_lib sm |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
275 build_lib sndcp |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
276 build_lib ppp |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
277 build_lib ppp_ir |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
278 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
|
279 build_lib upm |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
280 fi |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
281 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
282 # Condat drivers |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
283 build_lib gdi |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
284 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
285 # GPF |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
286 build_lib ccd_na7_db |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
287 build_lib frame_na7_db_fl |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
288 build_lib frame_na7_db_ir |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
289 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
|
290 build_lib misc_na7_db_fl |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
291 build_lib misc_na7_db_ir |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
292 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
|
293 build_lib osx_na7_db |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
294 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
|
295 build_lib tif_na7_db_fl |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
296 build_lib tif_na7_db_ir |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
297 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
|
298 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
299 # core drivers |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
300 build_lib drivers_flash |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
301 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
302 # Layer 1 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
303 build_lib tpudrv |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
304 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
|
305 build_lib l1_ext |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
306 lib_link_magic '(BSS_LIBS (.l1s_global))' |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
307 build_lib l1_int |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
308 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
|
309 build_lib l1_custom_ext |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
310 build_lib l1_custom_int |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
311 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
|
312 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
313 build_lib riviera_core_flash |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
314 build_lib riviera_cust_flash |
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 # services |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
317 build_lib audio |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
318 build_lib audio_bgd |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
319 build_lib cst |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
320 build_lib dar |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
321 build_lib dar_gbl_var |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
322 lib_link_magic '(BSS_DAR_LIB (.bss))' |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
323 build_lib etm |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
324 build_lib lls |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
325 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
326 # app drivers |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
327 build_lib abb |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
328 build_lib buzzer |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
329 if [ "$FCHG_STATE" = 1 ] |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
330 then |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
331 build_lib fchg |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
332 fi |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
333 build_lib ffs |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
334 build_lib ffs_drv |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
335 build_lib ffs_pcm |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
336 build_lib kpd |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
337 build_lib power |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
338 build_lib rtc_drv |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
339 build_lib sim_drv |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
340 build_lib spi_drv |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
341 build_lib uart_drv |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
342 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
343 # system glue |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
344 build_lib main |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
345 build_lib bootloader |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
346 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
|
347 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
348 # Nucleus |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
349 build_lib nucleus_flash |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
350 build_lib nucleus_intram |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
351 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
|
352 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
353 # TI's libc/libgcc equivalent |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
354 rts_blob_lib rts16le_flash |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
355 rts_blob_lib rts16le_int_ram |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
356 lib_link_magic '(BSS_LIBS (.bss))' |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
357 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
358 # generate the top level Makefile! |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
359 |
106
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
360 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
|
361 echo >> $BUILD_DIR/Makefile |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
362 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
|
363 echo >> $BUILD_DIR/Makefile |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
364 helpers/makeline def LIBS $LIBS >> $BUILD_DIR/Makefile |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
365 echo >> $BUILD_DIR/Makefile |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
366 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
|
367 echo >> $BUILD_DIR/Makefile |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
368 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
|
369 echo >> $BUILD_DIR/Makefile |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
370 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
371 if [ -n "$RAM_LINK_SCRIPT_SRC" ] |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
372 then |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
373 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
|
374 >> $BUILD_DIR/Makefile |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
375 echo >> $BUILD_DIR/Makefile |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
376 fi |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
377 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
378 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
|
379 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
|
380 echo >> $BUILD_DIR/Makefile |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
381 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
382 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
|
383 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
384 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
|
385 |
118
225e39652387
TMS470 build system: added m0-to-bin-c155
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
386 case "$TARGET" in |
225e39652387
TMS470 build system: added m0-to-bin-c155
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
387 c11x|c139) |
225e39652387
TMS470 build system: added m0-to-bin-c155
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
388 cat tms470/makefile-frags/m0-to-bin-c139 >> $BUILD_DIR/Makefile |
225e39652387
TMS470 build system: added m0-to-bin-c155
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
389 ;; |
225e39652387
TMS470 build system: added m0-to-bin-c155
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
390 c155) |
225e39652387
TMS470 build system: added m0-to-bin-c155
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
391 cat tms470/makefile-frags/m0-to-bin-c155 >> $BUILD_DIR/Makefile |
225e39652387
TMS470 build system: added m0-to-bin-c155
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
392 ;; |
225e39652387
TMS470 build system: added m0-to-bin-c155
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
393 *) |
225e39652387
TMS470 build system: added m0-to-bin-c155
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
394 cat tms470/makefile-frags/m0-to-bin-std >> $BUILD_DIR/Makefile |
225e39652387
TMS470 build system: added m0-to-bin-c155
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
395 ;; |
225e39652387
TMS470 build system: added m0-to-bin-c155
Mychaela Falconia <falcon@freecalypso.org>
parents:
106
diff
changeset
|
396 esac |
44
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
397 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
398 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
|
399 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
400 if [ -n "$RAM_LINK_SCRIPT_SRC" ] |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
401 then |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
402 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
|
403 fi |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
404 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
405 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
|
406 echo >> $BUILD_DIR/Makefile |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
407 echo 'FRC:' >> $BUILD_DIR/Makefile |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
408 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
409 # All done! |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
410 |
77b8d6bc6b31
configure.sh: putting it all together (TMS470)
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
411 echo "Run make in $BUILD_DIR to compile the firmware" |