view components/frame_na7_db_ir @ 134:7d50d8d13711

FFS code sync with Magnetite + gcc version fix This change brings the new flash autodetection for FC and Pirelli targets from Magnetite, and should also fix the gcc version for C1xx and gtamodem targets, which were previously broken because they used TI's original flash autodetect code (which operates at address 0) while the boot ROM is mapped there.
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 11 Dec 2018 08:43:25 +0000
parents 5c4db73d289a
children 23768d96edce
line wrap: on
line source

# Building frame_na7_db_ir.lib using the GPF source bits we got with TCS3.2

CFLAGS="-mw -x -pw2 -o3 -me -mt -g -mn"
CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork"

# Defines

CPPFLAGS="-DNU_DEBUG -D_FF_RV_EXIST_ -DRUN_INT_RAM"
CPPFLAGS="$CPPFLAGS -D_TARGET_ -D_NUCLEUS_"

if [ "$MEMSUPER" != 0 ]
then
	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
fi
if [ "$MEMSUPER" = 2 ]
then
	CPPFLAGS="$CPPFLAGS -DOPTIMIZE_POOL"
fi

# Includes

CPPFLAGS="$CPPFLAGS -I$SRC/gpf/frame"
CPPFLAGS="$CPPFLAGS -I$SRC/gpf/inc/nuc"
CPPFLAGS="$CPPFLAGS -I$SRC/nucleus"
CPPFLAGS="$CPPFLAGS -I$SRC/gpf/inc"
CPPFLAGS="$CPPFLAGS -I$SRC/gpf/tst"

# Source modules

SRCDIR=$SRC/gpf/frame

c_file $SRCDIR/frame.c
c_file $SRCDIR/vsi_sem.c
c_file $SRCDIR/vsi_com.c
c_file $SRCDIR/vsi_mem.c
c_file $SRCDIR/vsi_tim.c
c_file $SRCDIR/vsi_mis.c
c_file $SRCDIR/vsi_drv.c
c_file $SRCDIR/vsi_trc.c
c_file $SRCDIR/vsi_pro.c
if [ "$MEMSUPER" != 0 ]
then
	c_file $SRCDIR/vsi_ppm.c
fi
c_file $SRCDIR/xalert.c
c_file $SRCDIR/route.c
c_file $SRCDIR/prf_func.c
c_file $SRCDIR/frm_ext.c
c_file $SRCDIR/frame_version.c

# OSL

# drop -o3
CFLAGS="-mw -x -pw2 -o -me -mt -g -mn"

SRCDIR=$SRC/gpf/osl

c_file $SRCDIR/os_com_ir.c
c_file $SRCDIR/os_mem_ir.c
c_file $SRCDIR/os_mis_ir.c
c_file $SRCDIR/os_pro_ir.c
c_file $SRCDIR/os_sem_ir.c
c_file $SRCDIR/os_tim_ir.c