3 # source common functions and vars
4 . `dirname $0`/common.sh
6 # "|| :" means "or always succeeding built-in command"
7 PROFILE_NAME=$(echo "$@" | grep -Po "(?<=\-P\s)[^\s]*" || :)
10 EXTRA_PACK_OPTS="--extra-packs python-base-x86-arm,python-x86-arm,python-xml-x86-arm"
11 if [ "${PROFILE_NAME:0:9}" == "tztv_v3.0" ]; then
14 PROFILE_NAME="tztv_v2.2.1_prehawk"
17 if [ "$PROFILE_NAME" == "tztv_v3.0_emulator" ]; then
21 PROFILE_FLAG="-P $PROFILE_NAME"
23 if [ "$USE_GLOBAL_GBS_CONF" == "" ]; then
24 CONF_FLAG="--conf ${SCRIPTDIR}/gbs.conf"
27 gbs $CONF_FLAG build $PROFILE_FLAG -A "${ARCH}" --incremental \
28 ${EXTRA_PACK_OPTS} "$@"