annotate configure-gcc.sh @ 179:2a9935250c95

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