view scripts/mkcomp-test.sh @ 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 352f80da6813
children 88f40f4c829f
line wrap: on
line source

#!/bin/sh

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

export BUILD_DIR CDGINC CDGPRIM GPF GPRS MMI SRVC USE_STR2IND

exec scripts/mk-component.sh "$@"