FreeCalypso > hg > fc-tourmaline
comparison components/bootloader @ 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 bootloader.lib | |
2 | |
3 SRCDIR=$SRC/cs/system/bootloader/src | |
4 | |
5 # Assembly modules | |
6 | |
7 ASMFLAGS=-me | |
8 ASMFLAGS="$ASMFLAGS -dBOARD=41" | |
9 ASMFLAGS="$ASMFLAGS -dCHIPSET=$CHIPSET" | |
10 ASMFLAGS="$ASMFLAGS -dLONG_JUMP=3" | |
11 ASMFLAGS="$ASMFLAGS -dTOOL_CHOICE=0" | |
12 ASMFLAGS="$ASMFLAGS -dR2D_ASM=0" | |
13 ASMFLAGS="$ASMFLAGS -dR2D_LCD_TEST=0" | |
14 ASMFLAGS="$ASMFLAGS -dTI_PROFILER=$TI_PROFILER" | |
15 ASMFLAGS="$ASMFLAGS -dTI_NUC_MONITOR=0" | |
16 ASMFLAGS="$ASMFLAGS -dL1_GPRS=$GPRS" | |
17 ASMFLAGS="$ASMFLAGS -dOP_WCP=0" | |
18 ASMFLAGS="$ASMFLAGS -dWCP_PROF=0" | |
19 | |
20 if [ "$RF" = 12 ] | |
21 then | |
22 ASMFLAGS="$ASMFLAGS -dVCXO_26MHZ=1" | |
23 else | |
24 ASMFLAGS="$ASMFLAGS -dVCXO_26MHZ=0" | |
25 fi | |
26 | |
27 asm_file $SRCDIR/bootloader.s | |
28 | |
29 ASMFLAGS="-mt -me" | |
30 ASMFLAGS="$ASMFLAGS -dBOARD=41" | |
31 ASMFLAGS="$ASMFLAGS -dCHIPSET=$CHIPSET" | |
32 ASMFLAGS="$ASMFLAGS -dLONG_JUMP=3" | |
33 ASMFLAGS="$ASMFLAGS -dTOOL_CHOICE=0" | |
34 ASMFLAGS="$ASMFLAGS -dR2D_ASM=0" | |
35 ASMFLAGS="$ASMFLAGS -dR2D_LCD_TEST=0" | |
36 ASMFLAGS="$ASMFLAGS -dTI_PROFILER=$TI_PROFILER" | |
37 ASMFLAGS="$ASMFLAGS -dTI_NUC_MONITOR=0" | |
38 ASMFLAGS="$ASMFLAGS -dL1_GPRS=$GPRS" | |
39 ASMFLAGS="$ASMFLAGS -dOP_WCP=0" | |
40 ASMFLAGS="$ASMFLAGS -dWCP_PROF=0" | |
41 | |
42 asm_file $SRCDIR/branch_in_RAM.s | |
43 | |
44 # C modules | |
45 | |
46 CFLAGS="-mn -mt -mw -me -pw2" | |
47 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470" | |
48 | |
49 # Includes | |
50 | |
51 CPPFLAGS="$CPPFLAGS -I$SRC/cs/os/nucleus" | |
52 CPPFLAGS="$CPPFLAGS -I.." | |
53 CPPFLAGS="$CPPFLAGS -I../config" | |
54 CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/inc" | |
55 CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/frame/cust_os" | |
56 CPPFLAGS="$CPPFLAGS -I$SRC/cs/system" | |
57 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera" | |
58 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera/rv" | |
59 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core" | |
60 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/abb" | |
61 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/armio" | |
62 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/clkm" | |
63 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/conf" | |
64 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dma" | |
65 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dsp_dwnld" | |
66 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/inth" | |
67 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/memif" | |
68 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/rhea" | |
69 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/security" | |
70 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/spi" | |
71 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/timer" | |
72 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/uart" | |
73 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/ulpd" | |
74 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_app" | |
75 CPPFLAGS="$CPPFLAGS -I$SRC/cs/services" | |
76 | |
77 cfile_plain $SRCDIR/cmdboot.c | |
78 cfile_plain $SRCDIR/command.c | |
79 cfile_plain $SRCDIR/convert.c | |
80 cfile_plain $SRCDIR/optboot.c | |
81 cfile_plain $SRCDIR/serial.c | |
82 cfile_plain $SRCDIR/start.c | |
83 cfile_plain $SRCDIR/boot.c |