Add support to build using Tizen-X repo 30/307730/3
authorAleksander Świniarski <a.swiniarski@samsung.com>
Tue, 12 Mar 2024 13:31:40 +0000 (14:31 +0100)
committerDae-Hyun Ko <dhyuna.ko@samsung.com>
Wed, 13 Mar 2024 08:20:45 +0000 (08:20 +0000)
Commit introduces ability to build the chromium-efl on riscv64, x86_64, i586 and armv7l
architecture, using Tizen-X repos

* Added scripts of format tizen_src/build/build_x_{arch}.sh to quickly run builds for
specific architerctures using Tizen-X repository

* Added Tizen-X repo and profile to gbs.conf.in in form of tz_X*

* Added if switch in common.sh. When the platform is defined as base-X we are assigning
profile as tz_X

Change-Id: I92e80ce5efe353d849a5e0ff747f782ed91f7d9b
Signed-off-by: Aleksander Świniarski <a.swiniarski@samsung.com>
tizen_src/build/build_x_armv7l.sh [new file with mode: 0755]
tizen_src/build/build_x_ix86.sh [new file with mode: 0755]
tizen_src/build/build_x_riscv.sh [new file with mode: 0755]
tizen_src/build/build_x_x86_64.sh [new file with mode: 0755]
tizen_src/build/common.sh
tizen_src/build/gbs.conf.in

diff --git a/tizen_src/build/build_x_armv7l.sh b/tizen_src/build/build_x_armv7l.sh
new file mode 100755 (executable)
index 0000000..3097ee7
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+. `dirname $0`/common.sh
+
+setupAndExecuteTargetBuild Base-X "$@" -A armv7l
diff --git a/tizen_src/build/build_x_ix86.sh b/tizen_src/build/build_x_ix86.sh
new file mode 100755 (executable)
index 0000000..2c0605b
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+. `dirname $0`/common.sh
+
+setupAndExecuteTargetBuild Base-X "$@" -A i586
diff --git a/tizen_src/build/build_x_riscv.sh b/tizen_src/build/build_x_riscv.sh
new file mode 100755 (executable)
index 0000000..411c39d
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+. `dirname $0`/common.sh
+
+setupAndExecuteTargetBuild Base-X "$@" -A riscv64
diff --git a/tizen_src/build/build_x_x86_64.sh b/tizen_src/build/build_x_x86_64.sh
new file mode 100755 (executable)
index 0000000..0d504e6
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+. `dirname $0`/common.sh
+
+setupAndExecuteTargetBuild Base-X "$@" -A x86_64
index be6701a..c0b3c33 100755 (executable)
@@ -352,6 +352,8 @@ function setupAndExecuteTargetBuild() {
       PROFILE=tz_${DEFAULT_TIZEN_VERSION}_riscv
     elif [[ $platform == "wearable" ]]; then
       PROFILE=tzwr_5.5_arm-spin
+    elif [[ $platform == "Base-X" ]]; then
+      PROFILE=tz_X
     else
       echo "Cannot set default PROFILE for platform=${platform}"
       exit 1
index e266c30..1268d40 100755 (executable)
@@ -35,6 +35,16 @@ passwdx = QlpoOTFBWSZTWd0JOhUAAACBAABgIAAhAIIjF3JFOFCQ3Qk6FQ==
 
 ###############################################
 #
+# The Tizen X
+#
+[repo.tz_X_base]
+url = http://download.tizen.org/snapshots/TIZEN/Tizen/Tizen-Base-X/reference/repos/standard/packages/
+
+[repo.tz_X_unified]
+url = http://download.tizen.org/snapshots/TIZEN/Tizen/Tizen-Unified-X/reference/repos/standard/packages/
+
+###############################################
+#
 # The latest Tizen public standard
 #
 [profile.tz_standard]
@@ -44,6 +54,15 @@ buildroot = ~/GBS-ROOT-TZ_@TIZEN_VERSION@_STANDARD
 
 ###############################################
 #
+# The latest Tizen X
+#
+[profile.tz_X]
+obs = obs.tizen
+repos = repo.tz_X_base, repo.tz_X_unified
+buildroot = ~/GBS-ROOT-TZ_X_@_STANDARD
+
+###############################################
+#
 # The latest Tizen public emulator
 #
 [profile.tz_emulator]