view scripts/mkcomp-test.sh @ 639:026c98f757a6

tpudrv12.h & targets/gtm900.h: our current support is for MGC2GSMT version only As it turns out, there exist two different Huawei-made hw platforms both bearing the marketing name GTM900-B: one is MG01GSMT, the other is MGC2GSMT. The two are NOT fw-compatible: aside from flash chip differences which should be handled by autodetection, the two hw platforms are already known to have different RFFEs with different control signals, and there may be other differences not yet known. Our current gtm900 build target is for MGC2GSMT only; we do not yet have a specimen of MG01GSMT on hand, hence no support for that version will be possible until and unless someone provides one.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 30 Jan 2020 18:19:01 +0000
parents 5fbcfd465de0
children 8cf3029429f3
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 "$CHIPSET" ]
then
	CHIPSET=10
fi

if [ -z "$DSP" ]
then
	DSP=36
fi

if [ -z "$RF" ]
then
	RF=12
fi

if [ -z "$L1_DYN_DSP_DWNLD" ]
then
	L1_DYN_DSP_DWNLD=1
fi

if [ -z "$TCSENV" ]
then
	TCSENV=2
fi

case "$TCSENV" in
	2)
		CONDAT=condat2
		GPF=gpf2
		CDGINC=cdg211/cdginc
		CDGPRIM=cdg211/prim
		ACI=aci2
		;;
	3)
		CONDAT=condat3
		GPF=gpf3
		CDGINC=cdg-hybrid/cdginc
		CDGPRIM=cdg-hybrid/sap-inline
		ACI=g23m-aci
		;;
	*)
		echo "Error: bad TCSENV= setting" 1>&2
		exit 1
		;;
esac

if [ -z "$MMI" ]
then
	MMI=0
fi

GPRS=1
SRVC=1

export ACI BUILD_DIR CDGINC CDGPRIM CHIPSET CONDAT DSP GPF GPRS
export L1_DYN_DSP_DWNLD MMI RF SRVC USE_STR2IND

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