# "|| :" means "or always succeeding built-in command"
PROFILE_NAME=$(echo "$@" | grep -Po "(?<=\-P\s)[^\s]*" || :)
+ARCH="armv7l"
TIZEN_VERSION="chromium_efl_tizen_version 2.2.1"
-if [ "$PROFILE_NAME" == "tztv_v3.0" ]; then
+EXTRA_PACK_OPTS="--extra-packs python-base-x86-arm,python-x86-arm,python-xml-x86-arm"
+if [ "${PROFILE_NAME:0:9}" == "tztv_v3.0" ]; then
+ EXTRA_PACK_OPTS=""
TIZEN_VERSION="chromium_efl_tizen_version 3.0"
else
PROFILE_NAME="tztv_v2.2.1_prehawk"
fi
+if [ "$PROFILE_NAME" == "tztv_v3.0_emulator" ]; then
+ ARCH="i586"
+fi
+
PROFILE_FLAG="-P $PROFILE_NAME"
if [ "$USE_GLOBAL_GBS_CONF" == "" ]; then
CONF_FLAG="--conf ${SCRIPTDIR}/gbs.conf"
fi
-EXTRA_PACK_OPTS="--extra-packs python-base-x86-arm,python-x86-arm,python-xml-x86-arm"
-if [ "$PROFILE_NAME" == "tztv_v3.0" ]; then
- EXTRA_PACK_OPTS=""
-fi
-
-gbs $CONF_FLAG build $PROFILE_FLAG -A armv7l --incremental \
+gbs $CONF_FLAG build $PROFILE_FLAG -A "${ARCH}" --incremental \
--define 'TIZEN_PROFILE_TV 1' \
${EXTRA_PACK_OPTS} \
--define "${TIZEN_VERSION}" "$@"
${SCRIPTDIR}/apply_patches.sh -r ${SCRIPTDIR}/patches
-
[repo.supplement]
url = http://10.251.52.177/tizenrepo/tv_repo/supplement_odroid_chromium_tizen_v3.0
+
+###############################################
+## Tizen v3.0 for tv (Emulator)
+##
+[obs.tizentv]
+url = https://api.tizen.org
+
+[profile.tztv_v3.0_emulator]
+obs = obs.tizentv
+repos = repo.tztv_v3.0_emul
+buildroot = ~/GBS-ROOT-3.0-TV-EMUL
+
+[repo.tztv_v3.0_emul]
+url = http://download.tizen.org/snapshots/tizen/tv/latest/repos/emulator32-x11/packages/
build/apply_patches.sh -r build/patches
%endif
+# XXX Workaround for using rpmlint with emulator build on Tizen_TV 3.0
+#
+# When using this repo http://download.tizen.org/snapshots/tizen/tv/latest/repos/emulator32-x11/packages/
+# rpmlint-tizen-1.0-6.1 is installed in GBS-ROOT. So, after rpms are built
+# gbs build script runs rpmlint to test created packages. There is some BUG in
+# this script and directory /home/abuild/rpmbuild/OTHER/ isn't created. This
+# directory is required for rpmlint's log file and its lack causes build error.
+%if "%{?chromium_efl_tizen_version}%{!?chromium_efl_tizen_version:0}" == "3.0"
+if [ ! -d %{buildroot}/../../OTHER/ -a -f /opt/testing/bin/rpmlint ]; then
+ mkdir -p %{buildroot}/../../OTHER/
+fi
+%endif
+
%install
# On Tizen 3.0, eu-strip (part of elfutils) does not play well with gold.