3 SCRIPTDIR=$(cd $(dirname $0); pwd -P)
5 # source common functions and vars
6 . `dirname ${BASH_SOURCE[0]}`/common.sh
8 ${SCRIPTDIR}/apply_patches.sh
10 # "|| :" means "or always succeeding built-in command"
11 PROFILE_NAME=$(echo "$@" | grep -Po "(?<=\-P\s)[^\s]*" || :)
13 if [ "$PROFILE_NAME" == "" ]; then
14 PROFILE_NAME=tztv_v2.2.1_prehawk
15 PROFILE_FLAG="-P $PROFILE_NAME"
18 TIZEN_VERSION="chromium_efl_tizen_version 2.2.1"
20 if [ "$USE_GLOBAL_GBS_CONF" == "" ]; then
21 CONF_FLAG="--conf ${SCRIPTDIR}/gbs.conf"
24 gbs $CONF_FLAG build $PROFILE_FLAG -A armv7l --incremental \
25 --extra-packs python-base-x86-arm,python-x86-arm,python-xml-x86-arm \
26 --define "${TIZEN_VERSION}" "$@"
29 ${SCRIPTDIR}/apply_patches.sh -r
32 [ "$GBS_RET" != "0" ] && exit $GBS_RET
33 [ "$APPLY_PATCHES_RET" != "0" ] && exit $APPLY_PATCHES_RET