Add profile for build on Tizen 3.0 TV emulator
authorDominik Duda <d.duda@samsung.com>
Tue, 17 Feb 2015 11:20:24 +0000 (12:20 +0100)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=11434
Reviewed by: KC Park, Marcin Kolibabka, Piotr Tworek

Change-Id: I73f7c3fcdacedaaf16edd820c27344b69c921cdd
Signed-off-by: Dominik Duda <d.duda@samsung.com>
tizen_src/build/build_tv.sh
tizen_src/build/gbs.conf
tizen_src/packaging/chromium-efl.spec

index 8bbae65..9018860 100755 (executable)
@@ -10,28 +10,29 @@ ${SCRIPTDIR}/apply_patches.sh ${SCRIPTDIR}/patches
 # "|| :" 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
-
index 39a9a93..c1149d5 100755 (executable)
@@ -137,3 +137,17 @@ url = http://10.251.52.177/tizenrepo/tv_repo/tizen-tv_v3.0/repos/arm-x11/package
 
 [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/
index 71689b2..38d0a9d 100644 (file)
@@ -278,6 +278,19 @@ cp src/third_party/icu/android/icudtl.dat "%{OUTPUT_FOLDER}"
 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.