diff components/frame_ir @ 38:e58a5bb12de4

experimental support for GPF memory supervision
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 17 Oct 2020 07:35:14 +0000
parents 9ab2f6dc1974
children
line wrap: on
line diff
--- a/components/frame_ir	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/frame_ir	Sat Oct 17 07:35:14 2020 +0000
@@ -7,6 +7,15 @@
 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"
@@ -28,6 +37,10 @@
 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
@@ -54,12 +67,18 @@
 else
 
 	OBJDIR=../../blobs/osl/ir
+	OBJDIR_PS=../../blobs/osl/ir_ps
 
 	OBJS="$OBJS $OBJDIR/os_com.obj"
 	OBJS="$OBJS $OBJDIR/os_drv.obj"
 	OBJS="$OBJS $OBJDIR/os_evt.obj"
 	OBJS="$OBJS $OBJDIR/os_isr.obj"
-	OBJS="$OBJS $OBJDIR/os_mem.obj"
+	if [ "$MEMSUPER" != 0 ]
+	then
+		OBJS="$OBJS $OBJDIR_PS/os_mem.obj"
+	else
+		OBJS="$OBJS $OBJDIR/os_mem.obj"
+	fi
 	OBJS="$OBJS $OBJDIR/os_mis.obj"
 	OBJS="$OBJS $OBJDIR/os_pro.obj"
 	OBJS="$OBJS $OBJDIR/os_sem.obj"