view components/tif_na7_db_ir @ 548:9f191ca0051f

implemented ability to enable -D_FF_RV_EXIST_ in TIF library It is not clear if this quirk is intentional or not, but TI's production version of tif_na7_db_{fl,ir}.lib was built without -D_FF_RV_EXIST_, and as a result, the code that is present in the source for the TRACEMASK_IN_FFS feature was not compiled in, making the feature unavailable. The present change makes it possible to re-enable this code (when TIF libraries are being rebuilt from source rather than used as blobs) by setting TRACEMASK_IN_FFS=1 on the configure line. The new code is NOT enabled by default: it is not a change which we can justify inflicting on our production firmwares.
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 18 Nov 2018 08:09:17 +0000
parents a2f424142d5d
children 41b6a18ffa0b
line wrap: on
line source

# Building tif_na7_db_ir.lib using the GPF source bits we got with TCS211

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

# Defines

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

if [ "$TRACEMASK_IN_FFS" = 1 ]
then
	CPPFLAGS="$CPPFLAGS -D_FF_RV_EXIST_"
fi

# Includes

CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/inc/nuc"
CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/inc/nuc/arm7"
CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/inc"
CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/frame"
CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/ccd"
CPPFLAGS="$CPPFLAGS -I$SRC/gpf2/tst"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/system"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera/rvt"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/uart"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_app"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_app/uart"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/services"
CPPFLAGS="$CPPFLAGS -I.."
CPPFLAGS="$CPPFLAGS -I../config"

# Source modules

SRCDIR=$SRC/gpf2/tst

cfile_plain $SRCDIR/drv/tr2.c
cfile_plain $SRCDIR/drv/tif2.c
cfile_plain $SRCDIR/drv/ser_tr.c
cfile_plain $SRCDIR/drv/titrc.c
cfile_plain $SRCDIR/tst_pei.c
cfile_plain $SRCDIR/tstdriver.c
cfile_plain $SRCDIR/tif_version.c