FreeCalypso > hg > ffs-editor
comparison components/main @ 6:6a05d91d1435
components: first round of changes for the FFS editor
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Fri, 15 May 2020 02:39:15 +0000 |
| parents | 3b367f330821 |
| children | 80c8857ce1c7 |
comparison
equal
deleted
inserted
replaced
| 5:3b367f330821 | 6:6a05d91d1435 |
|---|---|
| 14 # Includes | 14 # Includes |
| 15 | 15 |
| 16 CPPFLAGS="$CPPFLAGS -I$SRC/nucleus" | 16 CPPFLAGS="$CPPFLAGS -I$SRC/nucleus" |
| 17 CPPFLAGS="$CPPFLAGS -I.." | 17 CPPFLAGS="$CPPFLAGS -I.." |
| 18 CPPFLAGS="$CPPFLAGS -I../config" | 18 CPPFLAGS="$CPPFLAGS -I../config" |
| 19 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/inc" | 19 #CPPFLAGS="$CPPFLAGS -I$SRC/gpf/inc" |
| 20 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/frame/cust_os" | 20 #CPPFLAGS="$CPPFLAGS -I$SRC/gpf/frame/cust_os" |
| 21 CPPFLAGS="$CPPFLAGS -I$SRC/cs/system" | 21 CPPFLAGS="$CPPFLAGS -I$SRC/cs/system" |
| 22 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera" | 22 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera" |
| 23 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera/rv" | 23 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera/rv" |
| 24 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core" | 24 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core" |
| 25 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/abb" | 25 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/abb" |
| 56 c_file $SRCDIR/init.c | 56 c_file $SRCDIR/init.c |
| 57 c_file $SRCDIR/create_RVtasks.c | 57 c_file $SRCDIR/create_RVtasks.c |
| 58 c_file $SRCDIR/main.c | 58 c_file $SRCDIR/main.c |
| 59 c_file $SRCDIR/sys_dummy.c | 59 c_file $SRCDIR/sys_dummy.c |
| 60 | 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 | 61 # a couple of assembly modules for the gcc-built version |
| 106 | 62 |
| 107 if [ "$COMPILER" = gcc ] | 63 ASMFLAGS=-mthumb-interwork |
| 108 then | 64 CPPFLAGS= |
| 109 ASMFLAGS=-mthumb-interwork | |
| 110 CPPFLAGS= | |
| 111 | 65 |
| 112 asm_file $SRCDIR/gcc/exceptions.S | 66 asm_file $SRCDIR/gcc/exceptions.S |
| 113 asm_file $SRCDIR/gcc/int_dummy.S | 67 asm_file $SRCDIR/gcc/int_dummy.S |
| 114 fi |
