changeset 105:5c4db73d289a

build system support for memory supervision
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 23 Jul 2018 07:01:39 +0000
parents 82ae724ca0d7
children 5ba0bee90efa
files components/aci components/aci_dti_mng components/aciext components/alr components/atiext components/cc components/ccd_na7_db components/ccddata components/cci components/cci_ir components/cl components/comlib components/config_gprs_fl components/config_gprs_ir components/config_gsm_fl components/config_gsm_ir components/cst components/dl components/dti components/fad components/frame_na7_db_fl components/frame_na7_db_ir components/gdi components/gmm components/grlc components/grlc_ir components/grr components/l1_pei components/l2r components/llc components/misc_na7_db_fl components/misc_na7_db_ir components/mm components/osx_na7_db components/ppp components/ppp_ir components/ra components/rlp components/rr components/sim_b_lib components/sm components/sms components/sndcp components/ss components/t30 components/tif_na7_db_fl components/tif_na7_db_ir components/uart_b_lib components/upm configure-gcc.sh configure-tms470.sh scripts/test-setup-gcc.sh scripts/test-setup-tms470.sh
diffstat 53 files changed, 274 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/components/aci	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/aci	Mon Jul 23 07:01:39 2018 +0000
@@ -87,6 +87,11 @@
 	CPPFLAGS="$CPPFLAGS -DALLOW_CSIM_GSM"
 fi
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
@@ -480,6 +485,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # New includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/aci_dti_mng	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/aci_dti_mng	Mon Jul 23 07:01:39 2018 +0000
@@ -55,6 +55,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/aciext	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/aciext	Mon Jul 23 07:01:39 2018 +0000
@@ -68,6 +68,11 @@
 CPPFLAGS="$CPPFLAGS -DTI_PS_FF_AT_P_CMD_SECP"
 CPPFLAGS="$CPPFLAGS -DTI_PS_FF_AT_P_CMD_SECS"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/alr	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/alr	Mon Jul 23 07:01:39 2018 +0000
@@ -62,6 +62,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DNWARN"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/alr2
--- a/components/atiext	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/atiext	Mon Jul 23 07:01:39 2018 +0000
@@ -61,6 +61,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/cc	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/cc	Mon Jul 23 07:01:39 2018 +0000
@@ -36,6 +36,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/cc
--- a/components/ccd_na7_db	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/ccd_na7_db	Mon Jul 23 07:01:39 2018 +0000
@@ -9,6 +9,11 @@
 CPPFLAGS="$CPPFLAGS -DCCDDATA_STATIC_DATA"
 CPPFLAGS="$CPPFLAGS -D_TMS470 -DNEW_ENTITY -DERR_TRACE_CCD"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/ccd"
--- a/components/ccddata	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/ccddata	Mon Jul 23 07:01:39 2018 +0000
@@ -4,6 +4,11 @@
 CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-D_TMS470 -DNEW_FRAME -DNEW_ENTITY -DCCDDATA_STATIC_DATA"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/ccd"
--- a/components/cci	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/cci	Mon Jul 23 07:01:39 2018 +0000
@@ -52,6 +52,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/cci_ir	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/cci_ir	Mon Jul 23 07:01:39 2018 +0000
@@ -52,6 +52,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/cl	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/cl	Mon Jul 23 07:01:39 2018 +0000
@@ -50,6 +50,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gprs/cl
--- a/components/comlib	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/comlib	Mon Jul 23 07:01:39 2018 +0000
@@ -21,6 +21,11 @@
 CPPFLAGS="$CPPFLAGS -DFF_ATI"
 CPPFLAGS="$CPPFLAGS -DCL_IMEI_CALYPSO_PLATFORM"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/config_gprs_fl	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/config_gprs_fl	Mon Jul 23 07:01:39 2018 +0000
@@ -58,6 +58,11 @@
 CPPFLAGS="$CPPFLAGS -DDATA_EXT_RAM"
 CPPFLAGS="$CPPFLAGS -DFF_UPM"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/config_gprs_ir	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/config_gprs_ir	Mon Jul 23 07:01:39 2018 +0000
@@ -58,6 +58,11 @@
 CPPFLAGS="$CPPFLAGS -DDATA_INT_RAM"
 CPPFLAGS="$CPPFLAGS -DFF_UPM"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/config_gsm_fl	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/config_gsm_fl	Mon Jul 23 07:01:39 2018 +0000
@@ -60,6 +60,11 @@
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 CPPFLAGS="$CPPFLAGS -DDATA_EXT_RAM"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/config_gsm_ir	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/config_gsm_ir	Mon Jul 23 07:01:39 2018 +0000
@@ -60,6 +60,11 @@
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 CPPFLAGS="$CPPFLAGS -DDATA_INT_RAM"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/cst	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/cst	Mon Jul 23 07:01:39 2018 +0000
@@ -16,6 +16,11 @@
 CPPFLAGS="$CPPFLAGS -DTOOL_CHOICE=0"
 CPPFLAGS="$CPPFLAGS -D_TMS470"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 if [ "$DISABLE_SLEEP" = 1 ]
 then
 	CPPFLAGS="$CPPFLAGS -DDISABLE_SLEEP"
--- a/components/dl	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/dl	Mon Jul 23 07:01:39 2018 +0000
@@ -45,6 +45,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/dl
--- a/components/dti	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/dti	Mon Jul 23 07:01:39 2018 +0000
@@ -46,6 +46,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-aci/dti
--- a/components/fad	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/fad	Mon Jul 23 07:01:39 2018 +0000
@@ -51,6 +51,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-fad/fad
--- a/components/frame_na7_db_fl	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/frame_na7_db_fl	Mon Jul 23 07:01:39 2018 +0000
@@ -8,6 +8,15 @@
 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"
@@ -29,6 +38,10 @@
 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
--- a/components/frame_na7_db_ir	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/frame_na7_db_ir	Mon Jul 23 07:01:39 2018 +0000
@@ -8,6 +8,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"
@@ -29,6 +38,10 @@
 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
--- a/components/gdi	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/gdi	Mon Jul 23 07:01:39 2018 +0000
@@ -59,6 +59,11 @@
 CPPFLAGS="$CPPFLAGS -DCUST=0"
 CPPFLAGS="$CPPFLAGS -DTESTMODE=1"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/gmm	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/gmm	Mon Jul 23 07:01:39 2018 +0000
@@ -50,6 +50,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gprs/gmm
--- a/components/grlc	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/grlc	Mon Jul 23 07:01:39 2018 +0000
@@ -51,6 +51,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gprs/grlc
--- a/components/grlc_ir	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/grlc_ir	Mon Jul 23 07:01:39 2018 +0000
@@ -52,6 +52,11 @@
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 CPPFLAGS="$CPPFLAGS -D_BOARD_=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gprs/grlc
--- a/components/grr	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/grr	Mon Jul 23 07:01:39 2018 +0000
@@ -51,6 +51,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gprs/grr
--- a/components/l1_pei	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/l1_pei	Mon Jul 23 07:01:39 2018 +0000
@@ -36,6 +36,11 @@
 CPPFLAGS="$CPPFLAGS -DNCONF"
 CPPFLAGS="$CPPFLAGS -DNTRACE"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/l1
--- a/components/l2r	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/l2r	Mon Jul 23 07:01:39 2018 +0000
@@ -47,6 +47,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-fad/l2r
--- a/components/llc	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/llc	Mon Jul 23 07:01:39 2018 +0000
@@ -52,6 +52,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/misc_na7_db_fl	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/misc_na7_db_fl	Mon Jul 23 07:01:39 2018 +0000
@@ -7,6 +7,11 @@
 
 CPPFLAGS="-D_TARGET_ -D_NUCLEUS_ -DRUN_FLASH"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/misc"
--- a/components/misc_na7_db_ir	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/misc_na7_db_ir	Mon Jul 23 07:01:39 2018 +0000
@@ -7,6 +7,11 @@
 
 CPPFLAGS="-D_TARGET_ -D_NUCLEUS_ -DRUN_INT_RAM"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/misc"
--- a/components/mm	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/mm	Mon Jul 23 07:01:39 2018 +0000
@@ -59,6 +59,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/mm
--- a/components/osx_na7_db	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/osx_na7_db	Mon Jul 23 07:01:39 2018 +0000
@@ -7,6 +7,11 @@
 
 CPPFLAGS="-D_TARGET_ -D_NUCLEUS_"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/frame/cust_os"
--- a/components/ppp	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/ppp	Mon Jul 23 07:01:39 2018 +0000
@@ -48,6 +48,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-fad/ppp
--- a/components/ppp_ir	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/ppp_ir	Mon Jul 23 07:01:39 2018 +0000
@@ -48,6 +48,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-fad/ppp
--- a/components/ra	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/ra	Mon Jul 23 07:01:39 2018 +0000
@@ -46,6 +46,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-fad/ra
--- a/components/rlp	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/rlp	Mon Jul 23 07:01:39 2018 +0000
@@ -56,6 +56,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-fad/rlp
--- a/components/rr	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/rr	Mon Jul 23 07:01:39 2018 +0000
@@ -59,6 +59,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/rr
--- a/components/sim_b_lib	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/sim_b_lib	Mon Jul 23 07:01:39 2018 +0000
@@ -67,6 +67,11 @@
 	CPPFLAGS="$CPPFLAGS -DALLOW_CSIM_GSM"
 fi
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/sim
--- a/components/sm	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/sm	Mon Jul 23 07:01:39 2018 +0000
@@ -51,6 +51,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gprs/sm
--- a/components/sms	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/sms	Mon Jul 23 07:01:39 2018 +0000
@@ -46,6 +46,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/sms
--- a/components/sndcp	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/sndcp	Mon Jul 23 07:01:39 2018 +0000
@@ -53,6 +53,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/ss	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/ss	Mon Jul 23 07:01:39 2018 +0000
@@ -45,6 +45,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/ss
--- a/components/t30	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/t30	Mon Jul 23 07:01:39 2018 +0000
@@ -52,6 +52,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-fad/t30
--- a/components/tif_na7_db_fl	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/tif_na7_db_fl	Mon Jul 23 07:01:39 2018 +0000
@@ -8,6 +8,11 @@
 CPPFLAGS="-DNU_DEBUG -DRUN_FLASH"
 CPPFLAGS="$CPPFLAGS -D_TARGET_ -D_NUCLEUS_"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/inc/nuc"
--- a/components/tif_na7_db_ir	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/tif_na7_db_ir	Mon Jul 23 07:01:39 2018 +0000
@@ -8,6 +8,11 @@
 CPPFLAGS="-DNU_DEBUG -DRUN_INT_RAM"
 CPPFLAGS="$CPPFLAGS -D_TARGET_ -D_NUCLEUS_"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/inc/nuc"
--- a/components/uart_b_lib	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/uart_b_lib	Mon Jul 23 07:01:39 2018 +0000
@@ -57,6 +57,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-aci/uart
--- a/components/upm	Mon Jul 23 01:47:29 2018 +0000
+++ b/components/upm	Mon Jul 23 07:01:39 2018 +0000
@@ -52,6 +52,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gprs/upm
--- a/configure-gcc.sh	Mon Jul 23 01:47:29 2018 +0000
+++ b/configure-gcc.sh	Mon Jul 23 07:01:39 2018 +0000
@@ -86,6 +86,7 @@
 # miscellaneous configurable feature settings
 
 ALLOW_CSIM_GSM=1
+MEMSUPER=0
 SERIAL_DYNAMIC_SWITCH=0
 TR_BAUD_CONFIG=TR_BAUD_115200
 
@@ -125,7 +126,7 @@
 export CHIPSET DSP RF
 export AMR L1_DYN_DSP_DWNLD L1_VOICE_MEMO_AMR MELODY_E2 SPEECH_RECO
 export DISABLE_SLEEP
-export ALLOW_CSIM_GSM SERIAL_DYNAMIC_SWITCH TR_BAUD_CONFIG
+export ALLOW_CSIM_GSM MEMSUPER SERIAL_DYNAMIC_SWITCH TR_BAUD_CONFIG
 export GPRS SRVC FCHG_STATE
 
 scripts/config-headers.sh
--- a/configure-tms470.sh	Mon Jul 23 01:47:29 2018 +0000
+++ b/configure-tms470.sh	Mon Jul 23 07:01:39 2018 +0000
@@ -81,6 +81,7 @@
 # miscellaneous configurable feature settings
 
 ALLOW_CSIM_GSM=1
+MEMSUPER=0
 SERIAL_DYNAMIC_SWITCH=0
 TR_BAUD_CONFIG=TR_BAUD_115200
 
@@ -148,7 +149,7 @@
 export CHIPSET DSP RF
 export AMR L1_DYN_DSP_DWNLD L1_VOICE_MEMO_AMR MELODY_E2 SPEECH_RECO
 export DISABLE_SLEEP
-export ALLOW_CSIM_GSM SERIAL_DYNAMIC_SWITCH TR_BAUD_CONFIG
+export ALLOW_CSIM_GSM MEMSUPER SERIAL_DYNAMIC_SWITCH TR_BAUD_CONFIG
 export GPRS SRVC FCHG_STATE
 
 scripts/config-headers.sh
--- a/scripts/test-setup-gcc.sh	Mon Jul 23 01:47:29 2018 +0000
+++ b/scripts/test-setup-gcc.sh	Mon Jul 23 07:01:39 2018 +0000
@@ -8,8 +8,9 @@
 L1_DYN_DSP_DWNLD=1
 GPRS=1
 SRVC=1
+MEMSUPER=0
 
-export BUILD_DIR TARGET CHIPSET DSP RF L1_DYN_DSP_DWNLD GPRS SRVC
+export BUILD_DIR TARGET CHIPSET DSP RF L1_DYN_DSP_DWNLD GPRS SRVC MEMSUPER
 
 set -e
 
--- a/scripts/test-setup-tms470.sh	Mon Jul 23 01:47:29 2018 +0000
+++ b/scripts/test-setup-tms470.sh	Mon Jul 23 07:01:39 2018 +0000
@@ -8,8 +8,9 @@
 L1_DYN_DSP_DWNLD=1
 GPRS=1
 SRVC=1
+MEMSUPER=0
 
-export BUILD_DIR TARGET CHIPSET DSP RF L1_DYN_DSP_DWNLD GPRS SRVC
+export BUILD_DIR TARGET CHIPSET DSP RF L1_DYN_DSP_DWNLD GPRS SRVC MEMSUPER
 
 set -e