FreeCalypso > hg > ffs-editor
comparison components/main @ 5:3b367f330821
components: pruned import from Selenite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 15 May 2020 02:20:23 +0000 |
parents | |
children | 6a05d91d1435 |
comparison
equal
deleted
inserted
replaced
4:7ed24ddc5c2a | 5:3b367f330821 |
---|---|
1 # Building main.lib with recompilation of the init module | |
2 | |
3 # C modules | |
4 | |
5 CFLAGS="-mn -mt -o -x -mw -me -pw2" | |
6 CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb" | |
7 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470" | |
8 | |
9 if [ "$RVTMUX_ON_MODEM" = 1 ] | |
10 then | |
11 CPPFLAGS="$CPPFLAGS -DCONFIG_RVTMUX_ON_MODEM" | |
12 fi | |
13 | |
14 # Includes | |
15 | |
16 CPPFLAGS="$CPPFLAGS -I$SRC/nucleus" | |
17 CPPFLAGS="$CPPFLAGS -I.." | |
18 CPPFLAGS="$CPPFLAGS -I../config" | |
19 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/inc" | |
20 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/frame/cust_os" | |
21 CPPFLAGS="$CPPFLAGS -I$SRC/cs/system" | |
22 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera" | |
23 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera/rv" | |
24 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core" | |
25 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/abb" | |
26 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/armio" | |
27 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/clkm" | |
28 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/conf" | |
29 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dma" | |
30 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dsp_dwnld" | |
31 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/inth" | |
32 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/memif" | |
33 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/rhea" | |
34 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/security" | |
35 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/spi" | |
36 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/timer" | |
37 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/uart" | |
38 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/ulpd" | |
39 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_app" | |
40 CPPFLAGS="$CPPFLAGS -I$SRC/cs/services" | |
41 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/audio_cust0" | |
42 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/audio_include" | |
43 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/cust0" | |
44 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/hmacs" | |
45 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/include" | |
46 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/p_include" | |
47 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/tm_include" | |
48 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/tm_cust0" | |
49 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/dyn_dwl_include" | |
50 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/tpu_drivers/p_source0" | |
51 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/tpu_drivers/source0" | |
52 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/tpu_drivers/source" | |
53 | |
54 SRCDIR=$SRC/cs/system/main | |
55 | |
56 c_file $SRCDIR/init.c | |
57 c_file $SRCDIR/create_RVtasks.c | |
58 c_file $SRCDIR/main.c | |
59 c_file $SRCDIR/sys_dummy.c | |
60 | |
61 # mem_load.c and int.s are for the TMS470 version only | |
62 | |
63 if [ "$COMPILER" = tms470 ] | |
64 then | |
65 | |
66 # Different CFLAGS for mem_load.c | |
67 | |
68 CFLAGS="-o -mw -me -pw2" | |
69 | |
70 c_file $SRCDIR/mem_load.c | |
71 | |
72 # Assembly module | |
73 | |
74 ASMFLAGS=-me | |
75 ASMFLAGS="$ASMFLAGS -dBOARD=41" | |
76 ASMFLAGS="$ASMFLAGS -dCHIPSET=$CHIPSET" | |
77 ASMFLAGS="$ASMFLAGS -dLONG_JUMP=3" | |
78 ASMFLAGS="$ASMFLAGS -dTOOL_CHOICE=0" | |
79 ASMFLAGS="$ASMFLAGS -dR2D_ASM=0" | |
80 ASMFLAGS="$ASMFLAGS -dR2D_LCD_TEST=0" | |
81 ASMFLAGS="$ASMFLAGS -dTI_PROFILER=0" | |
82 ASMFLAGS="$ASMFLAGS -dTI_NUC_MONITOR=0" | |
83 ASMFLAGS="$ASMFLAGS -dL1_GPRS=$GPRS" | |
84 ASMFLAGS="$ASMFLAGS -dOP_WCP=0" | |
85 ASMFLAGS="$ASMFLAGS -dWCP_PROF=0" | |
86 | |
87 if [ "$TARGET" = c155 ] | |
88 then | |
89 ASMFLAGS="$ASMFLAGS -dC155_TARGET=1" | |
90 else | |
91 ASMFLAGS="$ASMFLAGS -dC155_TARGET=0" | |
92 fi | |
93 | |
94 if [ "$RF" = 12 ] | |
95 then | |
96 ASMFLAGS="$ASMFLAGS -dVCXO_26MHZ=1" | |
97 else | |
98 ASMFLAGS="$ASMFLAGS -dVCXO_26MHZ=0" | |
99 fi | |
100 | |
101 asm_file $SRCDIR/int.s | |
102 | |
103 fi | |
104 | |
105 # a couple of assembly modules for the gcc-built version | |
106 | |
107 if [ "$COMPILER" = gcc ] | |
108 then | |
109 ASMFLAGS=-mthumb-interwork | |
110 CPPFLAGS= | |
111 | |
112 asm_file $SRCDIR/gcc/exceptions.S | |
113 asm_file $SRCDIR/gcc/int_dummy.S | |
114 fi |