FreeCalypso > hg > fc-selenite
annotate configure-gcc.sh @ 107:b882091ebb68
gprscomp.c: DMEM_PARTITION_1_SIZE bumped from 1600 to 1700 for gcc
These large DMEM partitions are used for T_CCD_Globs structure allocations
by the GRLC and GRR entities, and this structure contains a jmp_buf
for setjmp/longjmp. Our gcc/newlib version of jmp_buf is bigger than
TI's TMS470, and the whole structure is now 1636 bytes instead of 1584.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 23 Jul 2018 19:45:50 +0000 |
parents | 5ba0bee90efa |
children | 7f0681afe430 |
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 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
89 TR_BAUD_CONFIG=TR_BAUD_115200 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
90 |
106
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
91 SUFFIX= |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
92 |
93
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
93 # allow the user to override these defaults |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
94 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
95 shift |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
96 while [ $# != 0 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
97 do |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
98 eval "$1" |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
99 shift |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
100 done |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
101 |
106
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
102 # validate key settings and build configuration name |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
103 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
104 case "$SRVC" in |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
105 0) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
106 CONFIG_NAME=vo |
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 1) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
109 CONFIG_NAME=fd |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
110 ;; |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
111 2) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
112 CONFIG_NAME=da |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
113 ;; |
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 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
|
116 exit 1 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
117 esac |
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 case "$GPRS" in |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
120 0) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
121 ;; |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
122 1) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
123 CONFIG_NAME=gprs |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
124 ;; |
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 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
|
127 exit 1 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
128 esac |
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 case "$FCHG_STATE" in |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
131 0) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
132 ;; |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
133 1) |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
134 CONFIG_NAME="$CONFIG_NAME-chg" |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
135 ;; |
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 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
|
138 exit 1 |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
139 esac |
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 CONFIG_NAME="$CONFIG_NAME$SUFFIX-gcc" |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
142 BUILD_DIR="build-$TARGET-$CONFIG_NAME" |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
143 |
93
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
144 echo "Building firmware for target $TARGET in $BUILD_DIR" |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
145 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
146 if [ "$clean_flag" = 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
147 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
148 rm -rf $BUILD_DIR |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
149 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
150 mkdir -p $BUILD_DIR |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
151 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
152 # shell functions to be used in the configuration recipe |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
153 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
154 build_lib() { |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
155 if [ $# != 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
156 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
157 echo "Error: build_lib takes 1 argument" 1>&2 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
158 exit 1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
159 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
160 scripts/mk-component-gcc.sh "$1" |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
161 SUBDIR="$SUBDIR $1" |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
162 LIBS="$LIBS $1/$1.a" |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
163 } |
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 # invoke the configuration recipe |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
166 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
167 export BUILD_DIR TARGET |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
168 export CHIPSET DSP RF |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
169 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
|
170 export DISABLE_SLEEP |
105
5c4db73d289a
build system support for memory supervision
Mychaela Falconia <falcon@freecalypso.org>
parents:
93
diff
changeset
|
171 export ALLOW_CSIM_GSM MEMSUPER SERIAL_DYNAMIC_SWITCH TR_BAUD_CONFIG |
93
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
172 export GPRS SRVC FCHG_STATE |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
173 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
174 scripts/config-headers.sh |
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 SUBDIR= |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
177 LIBS= |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
178 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
179 build_lib ccddata |
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 # ACI libs |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
182 build_lib aci |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
183 build_lib aciext |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
184 build_lib aci_dti_mng |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
185 build_lib atiext |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
186 build_lib comlib |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
187 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
188 if [ "$GPRS" = 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
189 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
190 build_lib config_gprs_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
191 build_lib config_gprs_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
192 else |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
193 build_lib config_gsm_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
194 build_lib config_gsm_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
195 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
196 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
197 # G23M protocol stack libs |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
198 build_lib alr |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
199 build_lib cc |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
200 build_lib dl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
201 build_lib dti |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
202 build_lib l1_pei |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
203 build_lib mm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
204 build_lib rr |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
205 build_lib sim_b_lib |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
206 build_lib sms |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
207 build_lib ss |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
208 build_lib uart_b_lib |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
209 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
210 # fax and data |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
211 if [ "$SRVC" != 0 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
212 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
213 build_lib l2r |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
214 build_lib ra |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
215 build_lib rlp |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
216 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
217 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
218 # fax specific |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
219 if [ "$SRVC" = 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
220 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
221 build_lib fad |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
222 build_lib t30 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
223 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
224 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
225 # GPRS specific |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
226 if [ "$GPRS" = 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
227 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
228 build_lib cci |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
229 build_lib cci_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
230 build_lib cl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
231 build_lib gmm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
232 build_lib grlc |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
233 build_lib grlc_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
234 build_lib grr |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
235 build_lib llc |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
236 build_lib sm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
237 build_lib sndcp |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
238 build_lib ppp |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
239 build_lib ppp_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
240 build_lib upm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
241 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
242 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
243 # Condat drivers |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
244 build_lib gdi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
245 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
246 # GPF |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
247 build_lib ccd_na7_db |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
248 build_lib frame_na7_db_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
249 build_lib frame_na7_db_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
250 build_lib misc_na7_db_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
251 build_lib misc_na7_db_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
252 build_lib osx_na7_db |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
253 build_lib tif_na7_db_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
254 build_lib tif_na7_db_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
255 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
256 # core drivers |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
257 build_lib drivers_flash |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
258 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
259 # Layer 1 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
260 build_lib tpudrv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
261 build_lib l1_ext |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
262 build_lib l1_int |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
263 build_lib l1_custom_ext |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
264 build_lib l1_custom_int |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
265 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
266 build_lib riviera_core_flash |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
267 build_lib riviera_cust_flash |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
268 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
269 # services |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
270 build_lib audio |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
271 build_lib audio_bgd |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
272 build_lib cst |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
273 build_lib dar |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
274 build_lib dar_gbl_var |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
275 build_lib etm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
276 build_lib lls |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
277 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
278 # app drivers |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
279 build_lib abb |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
280 build_lib buzzer |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
281 if [ "$FCHG_STATE" = 1 ] |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
282 then |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
283 build_lib fchg |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
284 fi |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
285 build_lib ffs |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
286 build_lib ffs_drv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
287 build_lib ffs_pcm |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
288 build_lib kpd |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
289 build_lib power |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
290 build_lib rtc_drv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
291 build_lib sim_drv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
292 build_lib spi_drv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
293 build_lib uart_drv |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
294 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
295 # system glue |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
296 build_lib main |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
297 build_lib main_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
298 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
299 # Nucleus |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
300 build_lib nucleus_flash |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
301 build_lib nucleus_intram |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
302 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
303 # selective libc replacement |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
304 build_lib libsys_fl |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
305 build_lib libsys_ir |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
306 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
307 # generate the top level Makefile! |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
308 |
106
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
309 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
|
310 echo >> $BUILD_DIR/Makefile |
5ba0bee90efa
build system: new configuration naming mechanism
Mychaela Falconia <falcon@freecalypso.org>
parents:
105
diff
changeset
|
311 helpers/makeline def TARGET $TARGET >> $BUILD_DIR/Makefile |
93
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
312 echo >> $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
313 helpers/makeline def SUBDIR $SUBDIR >> $BUILD_DIR/Makefile |
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 LIBS $LIBS >> $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 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
318 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
|
319 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
|
320 echo >> $BUILD_DIR/Makefile |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
321 |
26237514cae7
configure-gcc.sh: created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
322 cat gcc/makefile-body >> $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 # All done! |
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 echo "Run make in $BUILD_DIR to compile the firmware" |