From 99f3c35d06211524a13ed5d2b968c0481b9d2365 Mon Sep 17 00:00:00 2001 From: Dominik Duda Date: Tue, 17 Feb 2015 12:20:24 +0100 Subject: [PATCH] Add profile for build on Tizen 3.0 TV emulator 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 --- tizen_src/build/build_tv.sh | 17 +++++++++-------- tizen_src/build/gbs.conf | 14 ++++++++++++++ tizen_src/packaging/chromium-efl.spec | 13 +++++++++++++ 3 files changed, 36 insertions(+), 8 deletions(-) diff --git a/tizen_src/build/build_tv.sh b/tizen_src/build/build_tv.sh index 8bbae65..9018860 100755 --- a/tizen_src/build/build_tv.sh +++ b/tizen_src/build/build_tv.sh @@ -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 - diff --git a/tizen_src/build/gbs.conf b/tizen_src/build/gbs.conf index 39a9a93..c1149d5 100755 --- a/tizen_src/build/gbs.conf +++ b/tizen_src/build/gbs.conf @@ -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/ diff --git a/tizen_src/packaging/chromium-efl.spec b/tizen_src/packaging/chromium-efl.spec index 71689b2..38d0a9d 100644 --- a/tizen_src/packaging/chromium-efl.spec +++ b/tizen_src/packaging/chromium-efl.spec @@ -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. -- 2.7.4