comparison components/main @ 22:7ded024bf471

components: pruned import from Magnetite renamed as desired for Tourmaline
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 16:29:07 +0000
parents
children fdc83c1ab3ff
comparison
equal deleted inserted replaced
21:1edc7293e433 22:7ded024bf471
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 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
7
8 if [ "$RVTMUX_ON_MODEM" = 1 ]
9 then
10 CPPFLAGS="$CPPFLAGS -DCONFIG_RVTMUX_ON_MODEM"
11 fi
12
13 # Includes
14
15 CPPFLAGS="$CPPFLAGS -I$SRC/cs/os/nucleus"
16 CPPFLAGS="$CPPFLAGS -I.."
17 CPPFLAGS="$CPPFLAGS -I../config"
18 CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/inc"
19 CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/frame/cust_os"
20 CPPFLAGS="$CPPFLAGS -I$SRC/cs/system"
21 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera"
22 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera/rv"
23 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core"
24 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/abb"
25 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/armio"
26 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/clkm"
27 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/conf"
28 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dma"
29 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dsp_dwnld"
30 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/inth"
31 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/memif"
32 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/rhea"
33 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/security"
34 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/spi"
35 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/timer"
36 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/uart"
37 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/ulpd"
38 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_app"
39 CPPFLAGS="$CPPFLAGS -I$SRC/cs/services"
40 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/audio_cust0"
41 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/audio_include"
42 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/cust0"
43 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/hmacs"
44 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/include"
45 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/p_include"
46 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/tm_include"
47 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/tm_cust0"
48 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/dyn_dwl_include"
49 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/tpu_drivers/p_source0"
50 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/tpu_drivers/source0"
51 CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/tpu_drivers/source"
52
53 SRCDIR=$SRC/cs/system/main
54
55 cfile_plain $SRCDIR/init.c
56 cfile_plain $SRCDIR/create_RVtasks.c
57 cfile_plain $SRCDIR/main.c
58 cfile_plain $SRCDIR/sys_dummy.c
59
60 # Different CFLAGS for mem_load.c
61
62 CFLAGS="-o -mw -me -pw2"
63
64 cfile_plain $SRCDIR/mem_load.c
65
66 # Assembly module
67
68 ASMFLAGS=-me
69 ASMFLAGS="$ASMFLAGS -dBOARD=41"
70 ASMFLAGS="$ASMFLAGS -dCHIPSET=$CHIPSET"
71 ASMFLAGS="$ASMFLAGS -dLONG_JUMP=3"
72 ASMFLAGS="$ASMFLAGS -dTOOL_CHOICE=0"
73 ASMFLAGS="$ASMFLAGS -dR2D_ASM=0"
74 ASMFLAGS="$ASMFLAGS -dR2D_LCD_TEST=0"
75 ASMFLAGS="$ASMFLAGS -dTI_PROFILER=$TI_PROFILER"
76 ASMFLAGS="$ASMFLAGS -dTI_NUC_MONITOR=0"
77 ASMFLAGS="$ASMFLAGS -dL1_GPRS=$GPRS"
78 ASMFLAGS="$ASMFLAGS -dOP_WCP=0"
79 ASMFLAGS="$ASMFLAGS -dWCP_PROF=0"
80
81 if [ "$TARGET" = c155 ]
82 then
83 ASMFLAGS="$ASMFLAGS -dC155_TARGET=1"
84 else
85 ASMFLAGS="$ASMFLAGS -dC155_TARGET=0"
86 fi
87
88 if [ "$RF" = 12 ]
89 then
90 ASMFLAGS="$ASMFLAGS -dVCXO_26MHZ=1"
91 else
92 ASMFLAGS="$ASMFLAGS -dVCXO_26MHZ=0"
93 fi
94
95 asm_file $SRCDIR/int.s