changeset 17:6323e661f2ed

added the ability to select different gpf and cdginc versions
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 27 Sep 2016 16:46:56 +0000
parents c15047b3d00d
children c8bd5a927942
files components/aci-classic scripts/mkcomp-test.sh scripts/str2ind-test.sh
diffstat 3 files changed, 40 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/components/aci-classic	Tue Sep 27 16:27:34 2016 +0000
+++ b/components/aci-classic	Tue Sep 27 16:46:56 2016 +0000
@@ -66,9 +66,9 @@
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat2/com/inc"
-CPPFLAGS="$CPPFLAGS -I$SRC/gpf2/inc"
+CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/inc"
 CPPFLAGS="$CPPFLAGS -I$SRC/condat2/com/include"
-CPPFLAGS="$CPPFLAGS -I../../cdg211/cdginc"
+CPPFLAGS="$CPPFLAGS -I../../$CDGINC"
 
 if [ "$MMI" = 2 ]
 then
@@ -80,7 +80,7 @@
 CPPFLAGS="$CPPFLAGS -I$SRC/aci2/aci"
 CPPFLAGS="$CPPFLAGS -I$SRC/aci2/aci_ext"
 CPPFLAGS="$CPPFLAGS -I$SRC/aci2/aci_dti_mng"
-CPPFLAGS="$CPPFLAGS -I../../cdg211/prim"
+CPPFLAGS="$CPPFLAGS -I../../$CDGPRIM"
 CPPFLAGS="$CPPFLAGS -I.."
 CPPFLAGS="$CPPFLAGS -I../config"
 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera"
@@ -453,12 +453,12 @@
 # New includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat2/com/inc"
-CPPFLAGS="$CPPFLAGS -I$SRC/gpf2/inc"
+CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/inc"
 CPPFLAGS="$CPPFLAGS -I$SRC/condat2/com/include"
-CPPFLAGS="$CPPFLAGS -I../../cdg211/cdginc"
+CPPFLAGS="$CPPFLAGS -I../../$CDGINC"
 CPPFLAGS="$CPPFLAGS -I$SRC/aci2/aci"
 CPPFLAGS="$CPPFLAGS -I$SRC/aci2/ksd"
-CPPFLAGS="$CPPFLAGS -I../../cdg211/prim"
+CPPFLAGS="$CPPFLAGS -I../../$CDGPRIM"
 
 # KSD source modules
 
@@ -522,12 +522,12 @@
 # New includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat2/com/inc"
-CPPFLAGS="$CPPFLAGS -I$SRC/gpf2/inc"
+CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/inc"
 CPPFLAGS="$CPPFLAGS -I$SRC/condat2/com/include"
-CPPFLAGS="$CPPFLAGS -I../../cdg211/cdginc"
+CPPFLAGS="$CPPFLAGS -I../../$CDGINC"
 CPPFLAGS="$CPPFLAGS -I$SRC/aci2/aci"
 CPPFLAGS="$CPPFLAGS -I$SRC/aci2/ati_ext"
-CPPFLAGS="$CPPFLAGS -I../../cdg211/prim"
+CPPFLAGS="$CPPFLAGS -I../../$CDGPRIM"
 
 # ati_ext source modules
 
--- a/scripts/mkcomp-test.sh	Tue Sep 27 16:27:34 2016 +0000
+++ b/scripts/mkcomp-test.sh	Tue Sep 27 16:46:56 2016 +0000
@@ -1,11 +1,39 @@
 #!/bin/sh
 
-BUILD_DIR=build-sb
+if [ -z "$BUILD_DIR" ]
+then
+	BUILD_DIR=build-sb
+fi
+
+if [ -z "$USE_STR2IND" ]
+then
+	USE_STR2IND=0
+fi
+
+if [ -z "$GPF" ]
+then
+	GPF=gpf2
+fi
+
+case "$GPF" in
+	gpf2)
+		CDGINC=cdg211/cdginc
+		CDGPRIM=cdg211/prim
+		;;
+	gpf3)
+		CDGINC=cdg3/cdginc-conservative
+		CDGPRIM=cdg3/sap-inline
+		;;
+	*)
+		echo "Error: bad GPF= setting" 1>&2
+		exit 1
+		;;
+esac
+
 GPRS=1
 MMI=0
 SRVC=1
-USE_STR2IND=0
 
-export BUILD_DIR GPRS MMI SRVC USE_STR2IND
+export BUILD_DIR CDGINC CDGPRIM GPF GPRS MMI SRVC USE_STR2IND
 
 exec scripts/mk-component.sh "$@"
--- a/scripts/str2ind-test.sh	Tue Sep 27 16:27:34 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-BUILD_DIR=build-sb
-GPRS=1
-MMI=0
-SRVC=1
-USE_STR2IND=1
-
-export BUILD_DIR GPRS MMI SRVC USE_STR2IND
-
-exec scripts/mk-component.sh "$@"