FreeCalypso > hg > fc-magnetite
annotate components/r2d_drv_flash @ 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 | b8fc86826624 |
children |
rev | line source |
---|---|
117
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 # Building r2d_drv_flash.lib |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 CFLAGS="-mn -mt -mf -o2 -x -mw -me -pw2" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 # Includes |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_app" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 CPPFLAGS="$CPPFLAGS -I$SRC/cs/os/nucleus" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 CPPFLAGS="$CPPFLAGS -I.." |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 CPPFLAGS="$CPPFLAGS -I../config" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/inc" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/frame/cust_os" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 CPPFLAGS="$CPPFLAGS -I$SRC/cs/system" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera/rv" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/abb" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/armio" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/clkm" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/conf" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dma" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dsp_dwnld" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/inth" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/memif" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/rhea" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/security" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/spi" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/timer" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/uart" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/ulpd" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 CPPFLAGS="$CPPFLAGS -I$SRC/cs/services" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/audio_cust0" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/audio_include" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/cust0" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/hmacs" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/include" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/p_include" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/tm_include" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/tm_cust0" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/dyn_dwl_include" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 # Source modules |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 SRCDIR=$SRC/cs/drivers/drv_app/r2d |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
47 cfile_plain $SRCDIR/r2d.c |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
48 cfile_plain $SRCDIR/r2d_env.c |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
49 cfile_plain $SRCDIR/r2d_i.c |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
50 cfile_plain $SRCDIR/r2d_inits.c |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
51 cfile_plain $SRCDIR/r2d_task.c |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
52 |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
53 # New sourceset |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
54 |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
55 CFLAGS="-mn -mt -mw -me -pw2" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 # Includes |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_app" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
61 CPPFLAGS="$CPPFLAGS -I$SRC/cs/os/nucleus" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
62 CPPFLAGS="$CPPFLAGS -I.." |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 CPPFLAGS="$CPPFLAGS -I../config" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
64 CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/inc" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
65 CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/frame/cust_os" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
66 CPPFLAGS="$CPPFLAGS -I$SRC/cs/system" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
68 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera/rv" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
69 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
70 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/abb" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
71 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/armio" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
72 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/clkm" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
73 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/conf" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
74 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dma" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
75 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dsp_dwnld" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
76 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/inth" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/memif" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/rhea" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
79 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/security" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
80 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/spi" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
81 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/timer" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
82 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/uart" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
83 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/ulpd" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
84 CPPFLAGS="$CPPFLAGS -I$SRC/cs/services" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
85 |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
86 # Source modules |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
87 |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
88 cfile_plain $SRCDIR/lcd_gsm_ps_api.c |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
89 cfile_plain $SRCDIR/lcd_functions.c |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
90 cfile_plain $SRCDIR/lcd_messages.c |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
91 cfile_plain $SRCDIR/lcd_process.c |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
92 |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
93 # New sourceset |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
94 |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
95 CFLAGS="-mn -mt -o2 -x -mw -me -pw2" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
96 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
97 |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
98 # Includes |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
99 |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
100 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_app" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
101 CPPFLAGS="$CPPFLAGS -I$SRC/cs/os/nucleus" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
102 CPPFLAGS="$CPPFLAGS -I.." |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
103 CPPFLAGS="$CPPFLAGS -I../config" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
104 CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/inc" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
105 CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/frame/cust_os" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
106 CPPFLAGS="$CPPFLAGS -I$SRC/cs/system" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
107 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
108 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera/rv" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
109 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
110 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/abb" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
111 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/armio" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
112 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/clkm" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
113 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/conf" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
114 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dma" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
115 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dsp_dwnld" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
116 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/inth" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
117 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/memif" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
118 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/rhea" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
119 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/security" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
120 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/spi" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
121 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/timer" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
122 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/uart" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
123 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/ulpd" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
124 CPPFLAGS="$CPPFLAGS -I$SRC/cs/services" |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
125 |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
126 # Source modules |
f65e6c434bfb
r2d_drv_flash.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
127 |
132
b8fc86826624
R2D: C139 LCD driver enabled
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
128 #cfile_plain $SRCDIR/board/uwire.c |
b8fc86826624
R2D: C139 LCD driver enabled
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
129 |
b8fc86826624
R2D: C139 LCD driver enabled
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
130 # FreeCalypso change: TI's TCS211 build always includes uwire.c in the lib, |
b8fc86826624
R2D: C139 LCD driver enabled
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
131 # but we are currently excluding it unconditionally because none of our |
b8fc86826624
R2D: C139 LCD driver enabled
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
132 # supported configurations need it: on the C139 this code is wrong and MUST |
b8fc86826624
R2D: C139 LCD driver enabled
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
133 # be excluded, whereas the D-Sample LCD doesn't use uWire and the code never |
b8fc86826624
R2D: C139 LCD driver enabled
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
134 # gets pulled into the link even if it's included in the lib. |
b8fc86826624
R2D: C139 LCD driver enabled
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
135 # |
b8fc86826624
R2D: C139 LCD driver enabled
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
136 # The code in r2d/board/uwire.c is only needed when targeting the real |
b8fc86826624
R2D: C139 LCD driver enabled
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
137 # C-Sample (not C139 emulation) or earlier TI boards, but our build system |
b8fc86826624
R2D: C139 LCD driver enabled
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
138 # does not currently support those anyway. |