annotate components/bmi-tcs3 @ 516:1ed9de6c90bd

src/g23m-gsm/sms/sms_for.c: bogus malloc removed The new error handling code that was not present in TCS211 blob version contains a malloc call that is bogus for 3 reasons: 1) The memory allocation in question is not needed in the first place; 2) libc malloc is used instead of one of the firmware's proper ways; 3) The memory allocation is made inside a function and then never freed, i.e., a memory leak. This bug was caught in gcc-built FreeCalypso fw projects (Citrine and Selenite) because our gcc environment does not allow any use of libc malloc (any reference to malloc produces a link failure), but this code from TCS3.2 is wrong even for Magnetite: if this code path is executed repeatedly over a long time, the many small allocations made by this malloc call without a subsequent free will eventually exhaust the malloc heap provided by the TMS470 environment, malloc will start returning NULL, and the bogus code will treat it as an error. Because the memory allocation in question is not needed at all, the fix entails simply removing it.
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 22 Jul 2018 06:04:49 +0000
parents ad7f986afae3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
423
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 # Building bmi.lib from TCS3/LoCosto source
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 CFLAGS="-me -mt -o -pw2 -x -mw"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 CPPFLAGS=
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 make_version bmi
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 cfile_plain bmi_version.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 # Defines
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 CPPFLAGS=-DMMI_HOMEZONE_ENABLED
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 CPPFLAGS="$CPPFLAGS -DFF_MMI_SAT_ICON"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 CPPFLAGS="$CPPFLAGS -DFF_MMI_SMS_DYNAMIC"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 if [ "$GPRS" = 1 ]
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 then
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 CPPFLAGS="$CPPFLAGS -DMMI_GPRS_ENABLED"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 fi
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 CPPFLAGS="$CPPFLAGS -DMMI_EM_ENABLED"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 CPPFLAGS="$CPPFLAGS -DNO_ASCIIZ"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22
452
4d7c2ccb5814 config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents: 451
diff changeset
23 case "$UI_CONFIG" in
4d7c2ccb5814 config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents: 451
diff changeset
24 bigcolor)
451
fd1d9063ad40 config mechanism: added ability to build D-Sample B&W UI configuration
Mychaela Falconia <falcon@freecalypso.org>
parents: 429
diff changeset
25 CPPFLAGS="$CPPFLAGS -DCOLOURDISPLAY"
452
4d7c2ccb5814 config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents: 451
diff changeset
26 CPPFLAGS="$CPPFLAGS -DLSCREEN"
4d7c2ccb5814 config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents: 451
diff changeset
27 ;;
4d7c2ccb5814 config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents: 451
diff changeset
28 bigbw)
4d7c2ccb5814 config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents: 451
diff changeset
29 CPPFLAGS="$CPPFLAGS -DLSCREEN"
4d7c2ccb5814 config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents: 451
diff changeset
30 ;;
4d7c2ccb5814 config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents: 451
diff changeset
31 84x48)
4d7c2ccb5814 config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents: 451
diff changeset
32 ;;
4d7c2ccb5814 config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents: 451
diff changeset
33 *)
4d7c2ccb5814 config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents: 451
diff changeset
34 echo "Error: UI_CONFIG=$UI_CONFIG setting not understood" 1>&2
4d7c2ccb5814 config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents: 451
diff changeset
35 exit 1
4d7c2ccb5814 config mechanism: high-level UI config made separate from target display drivers
Mychaela Falconia <falcon@freecalypso.org>
parents: 451
diff changeset
36 esac
423
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
38 CPPFLAGS="$CPPFLAGS -DINT_PHONEBOOK"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
39 CPPFLAGS="$CPPFLAGS -DNEW_EDITOR"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
40 CPPFLAGS="$CPPFLAGS -DTRGT_G23"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
41 CPPFLAGS="$CPPFLAGS -DAUS_CONDAT_TYPE_PORTING"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
42 CPPFLAGS="$CPPFLAGS -DCCDTABLES_EXTERN"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
43 CPPFLAGS="$CPPFLAGS -DOPTION_MULTITHREAD"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
44 CPPFLAGS="$CPPFLAGS -DNEW_FRAME"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
45 CPPFLAGS="$CPPFLAGS -DNEW_ENTITY"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
46 CPPFLAGS="$CPPFLAGS -D_TARGET_"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
47 CPPFLAGS="$CPPFLAGS -DSHARED_VSI"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
48 CPPFLAGS="$CPPFLAGS -DALR"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
49 CPPFLAGS="$CPPFLAGS -DFF_HOMEZONE"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
50 CPPFLAGS="$CPPFLAGS -DFF_MMI_SAT_ICON"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
51 CPPFLAGS="$CPPFLAGS -DFF_MMI_SMS_DYNAMIC"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
52 CPPFLAGS="$CPPFLAGS -DFF_CPHS"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
53 CPPFLAGS="$CPPFLAGS -D_TMS470"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
54 CPPFLAGS="$CPPFLAGS -DUART"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
55 CPPFLAGS="$CPPFLAGS -DFF_ATI"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
56 CPPFLAGS="$CPPFLAGS -DPHONEBOOK_EXTENSION"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
57
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
58 if [ "$GPRS" = 1 ]
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
59 then
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
60 CPPFLAGS="$CPPFLAGS -DGPRS"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
61 fi
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
62
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
63 CPPFLAGS="$CPPFLAGS -DFF_EM_MODE"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
64 CPPFLAGS="$CPPFLAGS -DMMI=2"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
65 CPPFLAGS="$CPPFLAGS -DMFW"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
66 CPPFLAGS="$CPPFLAGS -DAT_INTERPRETER"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
67 CPPFLAGS="$CPPFLAGS -DUSE_L1FD_FUNC_INTERFACE"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
68
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
69 if [ "$SRVC" != 0 ]
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
70 then
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
71 CPPFLAGS="$CPPFLAGS -DFAX_AND_DATA"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
72 if [ "$SRVC" = 1 ]
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
73 then
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
74 CPPFLAGS="$CPPFLAGS -DFF_FAX"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
75 fi
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
76 CPPFLAGS="$CPPFLAGS -DUSE_L2FD_FUNC_INTERFACE"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
77 fi
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
78
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
79 CPPFLAGS="$CPPFLAGS -DSRVC=$SRVC"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
80 CPPFLAGS="$CPPFLAGS -DNWARN"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
81 CPPFLAGS="$CPPFLAGS -DSIM_TOOLKIT"
482
ad7f986afae3 pass -DCHIPSET and -DBOARD for all TCS3.2 components
Mychaela Falconia <falcon@freecalypso.org>
parents: 452
diff changeset
82 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
ad7f986afae3 pass -DCHIPSET and -DBOARD for all TCS3.2 components
Mychaela Falconia <falcon@freecalypso.org>
parents: 452
diff changeset
83 CPPFLAGS="$CPPFLAGS -DBOARD=41"
423
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
84
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
85 # Includes
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
86
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
87 CPPFLAGS="$CPPFLAGS -I$SRC/$CONDAT/com/inc"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
88 CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/inc"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
89 CPPFLAGS="$CPPFLAGS -I$SRC/$CONDAT/com/include"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
90 CPPFLAGS="$CPPFLAGS -I../../$CDGINC"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
91 CPPFLAGS="$CPPFLAGS -I$SRC/ui3/bmi"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
92 CPPFLAGS="$CPPFLAGS -I$SRC/ui3/mfw"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
93 CPPFLAGS="$CPPFLAGS -I$SRC/$ACI/aci"
429
504b9cd42c37 components/bmi-tcs3: need -I for aci_dti_mng dir
Mychaela Falconia <falcon@freecalypso.org>
parents: 423
diff changeset
94 CPPFLAGS="$CPPFLAGS -I$SRC/$ACI/aci_dti_mng"
423
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
95 CPPFLAGS="$CPPFLAGS -I$SRC/$ACI/ksd"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
96 CPPFLAGS="$CPPFLAGS -I$SRC/ui3/atb"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
97 CPPFLAGS="$CPPFLAGS -I.."
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
98 CPPFLAGS="$CPPFLAGS -I../config"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
99 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
100 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_app"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
101 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
102 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/abb"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
103 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/armio"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
104 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/clkm"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
105 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/conf"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
106 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dma"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
107 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dsp_dwnld"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
108 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/inth"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
109 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/memif"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
110 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/rhea"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
111 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/security"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
112 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/spi"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
113 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/timer"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
114 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/uart"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
115 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/ulpd"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
116 CPPFLAGS="$CPPFLAGS -I$SRC/cs/system"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
117 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/include"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
118 CPPFLAGS="$CPPFLAGS -I$SRC/cs/services"
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
119
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
120 # Source modules
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
121
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
122 SRCDIR=$SRC/ui3/bmi
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
123
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
124 cfile_str2ind $SRCDIR/mmiCall.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
125 cfile_str2ind $SRCDIR/mmiResources.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
126 cfile_str2ind $SRCDIR/mmiBlkLangDB.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
127 cfile_str2ind $SRCDIR/mmiBlkManager.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
128 cfile_str2ind $SRCDIR/mmiBlkResources.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
129 cfile_str2ind $SRCDIR/mmiBookCallDetailsWindow.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
130 cfile_str2ind $SRCDIR/mmiBookCallListWindow.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
131 cfile_str2ind $SRCDIR/mmiBookController.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
132 cfile_str2ind $SRCDIR/mmiBookDetailsWindow.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
133 cfile_str2ind $SRCDIR/mmiBookMenuWindow.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
134 cfile_str2ind $SRCDIR/mmiBookPhonebook.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
135 cfile_str2ind $SRCDIR/mmiBookSDNWindow.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
136 cfile_str2ind $SRCDIR/mmiBookSearchWindow.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
137 cfile_str2ind $SRCDIR/mmiBookServices.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
138 cfile_str2ind $SRCDIR/mmiBookShared.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
139 cfile_str2ind $SRCDIR/mmiBookUtils.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
140 cfile_str2ind $SRCDIR/mmiDialogs.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
141 cfile_str2ind $SRCDIR/mmiDummy.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
142 cfile_str2ind $SRCDIR/mmiIcons.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
143 cfile_str2ind $SRCDIR/mmiIdle.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
144 cfile_str2ind $SRCDIR/mmiLists.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
145 cfile_str2ind $SRCDIR/mmiMain.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
146 cfile_str2ind $SRCDIR/mmiMenu.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
147 cfile_str2ind $SRCDIR/mmiMmi.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
148 cfile_str2ind $SRCDIR/mmiNetwork.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
149 cfile_str2ind $SRCDIR/mmiPins.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
150 cfile_str2ind $SRCDIR/mmiServices.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
151 cfile_str2ind $SRCDIR/mmiSettings.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
152 cfile_str2ind $SRCDIR/mmiSmsBroadcast.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
153 cfile_str2ind $SRCDIR/mmiSounds.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
154 cfile_str2ind $SRCDIR/mmiSmsIdle.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
155 cfile_str2ind $SRCDIR/mmiSmsMenu.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
156 cfile_str2ind $SRCDIR/mmiSmsSend.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
157 cfile_str2ind $SRCDIR/mmiSmsRead.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
158 cfile_str2ind $SRCDIR/mmiSoftKeys.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
159 cfile_str2ind $SRCDIR/mmiStart.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
160 cfile_str2ind $SRCDIR/mmiTimeDate.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
161 cfile_str2ind $SRCDIR/mmiUserData.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
162 cfile_str2ind $SRCDIR/mmiSatCall.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
163 cfile_str2ind $SRCDIR/mmiSatInfo.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
164 cfile_str2ind $SRCDIR/mmiSatInput.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
165 cfile_str2ind $SRCDIR/mmiSatMenu.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
166 cfile_str2ind $SRCDIR/mmiSimToolkit.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
167 cfile_str2ind $SRCDIR/mmiVoiceMemo.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
168 cfile_str2ind $SRCDIR/mmiCalculatorMain.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
169 cfile_str2ind $SRCDIR/mmiMelody_data.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
170 cfile_str2ind $SRCDIR/mmiTimers.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
171 cfile_str2ind $SRCDIR/mmiAoc.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
172 cfile_str2ind $SRCDIR/mmiCPHS.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
173 cfile_str2ind $SRCDIR/mmiBand.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
174 cfile_str2ind $SRCDIR/mmiSatClassE.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
175
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
176 if [ "$GPRS" = 1 ]
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
177 then
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
178 cfile_str2ind $SRCDIR/mmiGprs.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
179 fi
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
180
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
181 cfile_str2ind $SRCDIR/mmiHomezone.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
182 cfile_str2ind $SRCDIR/AUICalcEditor.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
183 cfile_str2ind $SRCDIR/AUIEditor.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
184 cfile_str2ind $SRCDIR/AUIPinEditor.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
185 cfile_str2ind $SRCDIR/AUISymbol.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
186 cfile_str2ind $SRCDIR/AUITextEntry.c
627d8ab425df starting to compile TCS3 version of BMI, drowning in errors
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
187 cfile_str2ind $SRCDIR/mmiEm.c