changeset 303:129a4f99511a

compile L1_GPRS modules from source
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 31 Oct 2017 05:05:19 +0000
parents 0740b5ff15f6
children cc0426509943
files components/l1_ext components/l1_int components/tpudrv
diffstat 3 files changed, 27 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/components/l1_ext	Tue Oct 31 03:42:35 2017 +0000
+++ b/components/l1_ext	Tue Oct 31 05:05:19 2017 +0000
@@ -87,6 +87,7 @@
 cfile_plain $SRCDIR/gtt_cfile/ctm/diag_deinterleaver.c
 cfile_plain $SRCDIR/gtt_cfile/ctm/fifo.c
 cfile_plain $SRCDIR/gtt_cfile/ctm/init_interleaver.c
+
 cfile_plain $SRCDIR/dyn_dwl_cfile/l1_dyn_dwl_afunc.c
 cfile_plain $SRCDIR/dyn_dwl_cfile/l1_dyn_dwl_async.c
 cfile_plain $SRCDIR/dyn_dwl_cfile/l1_dyn_dwl_init.c
@@ -104,10 +105,10 @@
 
 if [ "$GPRS" = 1 ]
 then
-	OBJS="$OBJS ../../blobs/obj/l1_ext/l1p_afun.obj"
-	OBJS="$OBJS ../../blobs/obj/l1_ext/l1p_asyn.obj"
-	OBJS="$OBJS ../../blobs/obj/l1_ext/l1p_cmpl.obj"
-	OBJS="$OBJS ../../blobs/obj/l1_ext/l1p_sync.obj"
+	cfile_plain $SRCDIR/p_cfile/l1p_afun.c
+	cfile_plain $SRCDIR/p_cfile/l1p_asyn.c
+	cfile_plain $SRCDIR/p_cfile/l1p_cmpl.c
+	cfile_plain $SRCDIR/p_cfile/l1p_sync.c
 fi
 
 # Different CFLAGS for l1_small.c
--- a/components/l1_int	Tue Oct 31 03:42:35 2017 +0000
+++ b/components/l1_int	Tue Oct 31 05:05:19 2017 +0000
@@ -16,6 +16,21 @@
 	>> $BUILD_DIR/$LIBNAME/Makefile
 echo >> $BUILD_DIR/$LIBNAME/Makefile
 
+if [ "$GPRS" = 1 ]
+then
+	helpers/makeline dep l1p_cmpl_intram.c $SRCDIR/p_cfile/l1p_cmpl.c \
+		>> $BUILD_DIR/$LIBNAME/Makefile
+	helpers/makeline cmd sed -n -f $SRCDIR/tools/intram.sed '$<' '>' '$@' \
+		>> $BUILD_DIR/$LIBNAME/Makefile
+	echo >> $BUILD_DIR/$LIBNAME/Makefile
+
+	helpers/makeline dep l1p_sync_intram.c $SRCDIR/p_cfile/l1p_sync.c \
+		>> $BUILD_DIR/$LIBNAME/Makefile
+	helpers/makeline cmd sed -n -f $SRCDIR/tools/intram.sed '$<' '>' '$@' \
+		>> $BUILD_DIR/$LIBNAME/Makefile
+	echo >> $BUILD_DIR/$LIBNAME/Makefile
+fi
+
 # Compilation
 
 CFLAGS="-g -me -pw2 -mt -o -mw"
@@ -81,10 +96,10 @@
 
 if [ "$GPRS" = 1 ]
 then
-	OBJS="$OBJS ../../blobs/obj/l1_int/l1p_ctl.obj"
-	OBJS="$OBJS ../../blobs/obj/l1_int/l1p_func.obj"
-	OBJS="$OBJS ../../blobs/obj/l1_int/l1p_driv.obj"
-	OBJS="$OBJS ../../blobs/obj/l1_int/macs.obj"
+	cfile_plain $SRCDIR/p_cfile/l1p_ctl.c
+	cfile_plain $SRCDIR/p_cfile/l1p_func.c
+	cfile_plain $SRCDIR/p_cfile/l1p_driv.c
+	cfile_plain $SRCDIR/cmacs/macs.c
 fi
 
 cfile_plain l1_cmplx_intram.c
@@ -92,6 +107,6 @@
 
 if [ "$GPRS" = 1 ]
 then
-	OBJS="$OBJS ../../blobs/obj/l1_int/l1p_cmpl_intram.obj"
-	OBJS="$OBJS ../../blobs/obj/l1_int/l1p_sync_intram.obj"
+	cfile_plain l1p_cmpl_intram.c
+	cfile_plain l1p_sync_intram.c
 fi
--- a/components/tpudrv	Tue Oct 31 03:42:35 2017 +0000
+++ b/components/tpudrv	Tue Oct 31 05:05:19 2017 +0000
@@ -47,5 +47,5 @@
 
 if [ "$GPRS" = 1 ]
 then
-	OBJS="$OBJS ../../blobs/obj/tpudrv/p_tpudr12.obj"
+	cfile_plain $SRCDIR/p_source0/p_tpudr12.c
 fi