[Tizen][OBS] Changes for Tizen OBS Build
[platform/framework/web/chromium-efl.git] / tizen_src / build / build_tv.sh
1 #!/bin/bash
2
3 # source common functions and vars
4 . `dirname $0`/common.sh
5
6 # "|| :" means "or always succeeding built-in command"
7 PROFILE_NAME=$(echo "$@" | grep -Po "(?<=\-P\s)[^\s]*" || :)
8
9 ARCH="armv7l"
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
12   EXTRA_PACK_OPTS=""
13 else
14   PROFILE_NAME="tztv_v2.2.1_prehawk"
15 fi
16
17 if [ "$PROFILE_NAME" == "tztv_v3.0_emulator" ]; then
18     ARCH="i586"
19 fi
20
21 PROFILE_FLAG="-P $PROFILE_NAME"
22
23 if [ "$USE_GLOBAL_GBS_CONF" == "" ]; then
24   CONF_FLAG="--conf ${SCRIPTDIR}/gbs.conf"
25 fi
26
27 gbs $CONF_FLAG build $PROFILE_FLAG -A "${ARCH}" --incremental \
28     ${EXTRA_PACK_OPTS} "$@"