view components/frame_na7_db_fl @ 167:5b0e7f9b3d05

components: new -D additions from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 19 Jun 2019 03:57:35 +0000
parents 23768d96edce
children
line wrap: on
line source

# Building frame_na7_db_fl.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 -mthumb"

# Defines

CPPFLAGS="-DNU_DEBUG -D_FF_RV_EXIST_ -DRUN_FLASH"
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

cfile_symlink $SRCDIR/frame.c
cfile_symlink $SRCDIR/vsi_sem.c
cfile_symlink $SRCDIR/vsi_com.c
cfile_symlink $SRCDIR/vsi_mem.c
cfile_symlink $SRCDIR/vsi_tim.c
cfile_symlink $SRCDIR/vsi_mis.c
cfile_symlink $SRCDIR/vsi_drv.c
cfile_symlink $SRCDIR/vsi_trc.c
cfile_symlink $SRCDIR/vsi_pro.c
if [ "$MEMSUPER" != 0 ]
then
	cfile_symlink $SRCDIR/vsi_ppm.c
fi
cfile_symlink $SRCDIR/xalert.c
cfile_symlink $SRCDIR/route.c
cfile_symlink $SRCDIR/prf_func.c
cfile_symlink $SRCDIR/frm_ext.c
cfile_symlink $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_fl.c
c_file $SRCDIR/os_drv.c
c_file $SRCDIR/os_isr.c
c_file $SRCDIR/os_mem_fl.c
c_file $SRCDIR/os_mis_fl.c
c_file $SRCDIR/os_pro_fl.c
c_file $SRCDIR/os_sem_fl.c
c_file $SRCDIR/os_tim_fl.c