FreeCalypso > hg > fc-magnetite
annotate components/aciext-tcs3 @ 673:62a5285e014a
Lorekeeping: allow tpudrv-leonardo.lib on Leonardo/Tango
Back in 2015 the Mother's idea was to produce a FreeCalypso development
board that would be a clone of TI Leonardo, including the original
quadband RFFE; one major additional stipulation was that this board
needed to be able to run original unmodified TCS211-20070608 firmware
with all blobs intact, with only minimal binary patches to main.lib
and tpudrv.lib. The necessary patched libs were produced at that time
in the tcs211-patches repository.
That plan was changed and we produced FCDEV3B instead, with Openmoko's
triband RFFE instead of Leonardo quadband, but when FC Magnetite started
in 2016, a TPUDRV_blob= provision was still made, allowing the possibility
of patching OM's tpudrv.lib for a restored Leonardo RFFE.
Now in 2020 we have FC Tango which is essentially a verbatim clone of
Leonardo core, including the original quadband RFFE. We have also
deblobbed our firmware so much that we have absolutely no real need
for a blob version of tpudrv.lib - but I thought it would be neat to put
the ancient TPUDRV_blob= mechanism (classic config) to its originally
intended use, just for the heck of it.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 29 May 2020 03:55:36 +0000 |
parents | ad7f986afae3 |
children |
rev | line source |
---|---|
169
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 # Building the TCS3.2 version of aciext.lib |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 CFLAGS="-me -mt -o -pw2 -x -mw" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 CPPFLAGS= |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 make_version aci_ext |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 cfile_plain aci_ext_version.c |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 # Defines |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 CPPFLAGS=-DCCDTABLES_EXTERN |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 CPPFLAGS="$CPPFLAGS -DOPTION_MULTITHREAD" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 CPPFLAGS="$CPPFLAGS -DNEW_FRAME" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 CPPFLAGS="$CPPFLAGS -DNEW_ENTITY" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 CPPFLAGS="$CPPFLAGS -D_TARGET_" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 CPPFLAGS="$CPPFLAGS -DSHARED_VSI" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 CPPFLAGS="$CPPFLAGS -DALR" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 CPPFLAGS="$CPPFLAGS -DFF_HOMEZONE" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 CPPFLAGS="$CPPFLAGS -DFF_MMI_SAT_ICON" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 CPPFLAGS="$CPPFLAGS -DFF_MMI_SMS_DYNAMIC" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 CPPFLAGS="$CPPFLAGS -DFF_CPHS" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 CPPFLAGS="$CPPFLAGS -D_TMS470" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 CPPFLAGS="$CPPFLAGS -DUART" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 CPPFLAGS="$CPPFLAGS -DFF_ATI" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 CPPFLAGS="$CPPFLAGS -DNWARN" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 CPPFLAGS="$CPPFLAGS -DFF_EM_MODE" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 CPPFLAGS="$CPPFLAGS -DAT_INTERPRETER" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 CPPFLAGS="$CPPFLAGS -DUSE_L1FD_FUNC_INTERFACE" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 if [ "$SRVC" != 0 ] |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 then |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 CPPFLAGS="$CPPFLAGS -DFAX_AND_DATA" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 if [ "$SRVC" = 1 ] |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 then |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 CPPFLAGS="$CPPFLAGS -DFF_FAX" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 fi |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 CPPFLAGS="$CPPFLAGS -DUSE_L2FD_FUNC_INTERFACE" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 fi |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 CPPFLAGS="$CPPFLAGS -DSRVC=$SRVC" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 CPPFLAGS="$CPPFLAGS -DMMI=$MMI" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 if [ "$MMI" = 0 ] |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 then |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 CPPFLAGS="$CPPFLAGS -DACI" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 elif [ "$MMI" = 2 ] |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
47 then |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
48 CPPFLAGS="$CPPFLAGS -DMFW" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
49 fi |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
50 |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
51 CPPFLAGS="$CPPFLAGS -DPHONEBOOK_EXTENSION" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
52 |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
53 if [ "$GPRS" = 1 ] |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
54 then |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
55 CPPFLAGS="$CPPFLAGS -DGPRS" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 fi |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 CPPFLAGS="$CPPFLAGS -DSMS_PDU_SUPPORT" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 CPPFLAGS="$CPPFLAGS -DSIM_TOOLKIT" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 CPPFLAGS="$CPPFLAGS -DDTI2" |
482
ad7f986afae3
pass -DCHIPSET and -DBOARD for all TCS3.2 components
Mychaela Falconia <falcon@freecalypso.org>
parents:
477
diff
changeset
|
61 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET" |
ad7f986afae3
pass -DCHIPSET and -DBOARD for all TCS3.2 components
Mychaela Falconia <falcon@freecalypso.org>
parents:
477
diff
changeset
|
62 CPPFLAGS="$CPPFLAGS -DBOARD=41" |
169
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 |
477
f65a4399093d
hybrid config: re-enabled obscure AT commands which require TI_PS_FF_* flags
Mychaela Falconia <falcon@freecalypso.org>
parents:
169
diff
changeset
|
64 # FreeCalypso additions to make the TCS3.2 version |
f65a4399093d
hybrid config: re-enabled obscure AT commands which require TI_PS_FF_* flags
Mychaela Falconia <falcon@freecalypso.org>
parents:
169
diff
changeset
|
65 # behave more like TCS211 |
f65a4399093d
hybrid config: re-enabled obscure AT commands which require TI_PS_FF_* flags
Mychaela Falconia <falcon@freecalypso.org>
parents:
169
diff
changeset
|
66 |
f65a4399093d
hybrid config: re-enabled obscure AT commands which require TI_PS_FF_* flags
Mychaela Falconia <falcon@freecalypso.org>
parents:
169
diff
changeset
|
67 CPPFLAGS="$CPPFLAGS -DTI_PS_FF_AT_P_CMD_SECP" |
f65a4399093d
hybrid config: re-enabled obscure AT commands which require TI_PS_FF_* flags
Mychaela Falconia <falcon@freecalypso.org>
parents:
169
diff
changeset
|
68 CPPFLAGS="$CPPFLAGS -DTI_PS_FF_AT_P_CMD_SECS" |
f65a4399093d
hybrid config: re-enabled obscure AT commands which require TI_PS_FF_* flags
Mychaela Falconia <falcon@freecalypso.org>
parents:
169
diff
changeset
|
69 |
169
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
70 # Includes |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
71 |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
72 CPPFLAGS="$CPPFLAGS -I$SRC/$CONDAT/com/inc" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
73 CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/inc" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
74 CPPFLAGS="$CPPFLAGS -I$SRC/$CONDAT/com/include" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
75 CPPFLAGS="$CPPFLAGS -I../../$CDGINC" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
76 |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77 CPPFLAGS="$CPPFLAGS -I$SRC/g23m-aci/aci" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 CPPFLAGS="$CPPFLAGS -I$SRC/g23m-aci/aci_ext" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
79 CPPFLAGS="$CPPFLAGS -I../../$CDGPRIM" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
80 CPPFLAGS="$CPPFLAGS -I.." |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
81 CPPFLAGS="$CPPFLAGS -I../config" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
82 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
83 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_app" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
84 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
85 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/abb" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
86 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/armio" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
87 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/clkm" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
88 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/conf" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
89 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dma" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
90 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dsp_dwnld" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
91 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/inth" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
92 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/memif" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
93 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/rhea" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
94 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/security" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
95 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/spi" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
96 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/timer" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
97 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/uart" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
98 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/ulpd" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
99 CPPFLAGS="$CPPFLAGS -I$SRC/cs/system" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
100 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/include" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
101 CPPFLAGS="$CPPFLAGS -I$SRC/cs/services" |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
102 |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
103 # Source modules |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
104 |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
105 SRCDIR=$SRC/g23m-aci/aci_ext |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
106 |
825d15577a21
TCS3.2 version of aciext.lib compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
107 cfile_str2ind $SRCDIR/aci_ext_pers.c |