tizen: Add support for Tizen:4:Unified (x86_64)
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Fri, 9 Jun 2017 08:39:15 +0000 (10:39 +0200)
committerPhil Coval <philippe.coval@osg.samsung.com>
Tue, 4 Jul 2017 07:45:12 +0000 (07:45 +0000)
To use on x86_64:
gbsarch=x86_64 gbsprofile=tizen_4_0_unified_x86_64 ./gbsbuild.sh

Other arch might come later, if needed.

x86_64 was preferred, because that way,
we could run units tests on build hosts (TBC).

Change-Id: Ie827470e85b5eeacdcc3c35a1e596768f74e1e58
Bug: https://jira.iotivity.org/browse/IOT-2397
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/20667
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Mats Wichmann <mats@linux.com>
Reviewed-by: C.J. Collier <cjcollier@linuxfoundation.org>
(cherry picked from commit 71e39d052c37c6fbc85deedb041ff32bf3db417d)
Reviewed-on: https://gerrit.iotivity.org/gerrit/20785
Reviewed-by: Youngman Jung <yman.jung@samsung.com>
gbsbuild.sh
tools/tizen/.gbs.conf

index 78af4b4..7b511f4 100755 (executable)
@@ -53,7 +53,9 @@ cp -R $sourcedir/iotivity.pc.in $sourcedir/tmp
 cd $sourcedir/tmp
 
 secured=1
-gbscommand="gbs build -A armv7l "
+gbsarch=${gbsarch:=armv7l}
+gbsprofile=${gbsprofile:=profile.tizen}
+gbscommand="gbs build -A ${gbsarch} -P ${gbsprofile}"
 nproc=$(expr 1 + $(expr `nproc --ignore=1` / 2 ) )
 gbscommand=$gbscommand" --define '_smp_mflags -j$nproc'"
 
index 4fc2afe..5500571 100755 (executable)
@@ -34,3 +34,15 @@ url = http://download.tizen.org/snapshots/2.4-mobile/common/latest/repos/target-
 
 [repo.devel-gcc49-base]
 url = http://download.tizen.org/releases/2.4/2.4-base/tizen-2.4-base_20151027.1/repos/standard/packages/
+
+#{ Tizen:4.0:Unified
+[profile.tizen_4_0_unified_x86_64]
+repos=repo.tizen_4_0_base_x86_64, repo.tizen_4_0_unified_x86_64
+buildroot=~/tmp/gbs/tmp-GBS-tizen_4_0_unified_x86_64
+
+[repo.tizen_4_0_unified_x86_64]
+url=http://download.tizen.org/releases/milestone/tizen/4.0.m1/tizen-unified_20170529.1/repos/standard/packages/
+
+[repo.tizen_4_0_base_x86_64]
+url=http://download.tizen.org/releases/milestone/tizen/4.0.m1/tizen-base_20170520.1/repos/x86_64/packages/
+#} Tizen:4.0:Unified