Fix for building with Tizen X Repo 72/308972/2
authorAleksander Świniarski <a.swiniarski@samsung.com>
Mon, 18 Mar 2024 08:23:31 +0000 (09:23 +0100)
committerBot Blink <blinkbot@samsung.com>
Thu, 4 Apr 2024 08:17:01 +0000 (08:17 +0000)
Currently for building with Tizen X repo we are using directory of form
out.tz_v9.0* to store object files, which is the same format of
directory, as when creating with standard repositories. Due to this
object files from these builds get mixed in the same directory.

This patch fixes this by use of conditional in .spec file. When the
Tizen X is detected, the directory of form out.tz_X* will be used instead

Change-Id: Ia57797b5e1d8cfb865ecc72887877abd8d0c9a7b
Signed-off-by: Aleksander Świniarski <a.swiniarski@samsung.com>
packaging/chromium-efl.spec
tizen_src/build/common.sh

index a2934b7..f6624ae 100644 (file)
@@ -46,6 +46,12 @@ Source1: content_shell.in
 
 %define tizen_version %{tizen_version_major}%{tizen_version_minor}
 
+%if "%{?_is_tizen_x}" == "1"
+%define __is_tizen_x 1
+%else
+%define __is_tizen_x 0
+%endif
+
 %if "%{?_build_chrome}" == "1"
 %define __build_chrome 1
 %else
@@ -481,8 +487,12 @@ Chromium gcov objects
 %if %{__build_chrome} == 1
 %define OUTPUT_BASE_FOLDER out.chrome.tz_v%{tizen_version_major}.%{tizen_version_minor}.%{repo_name}.%{ARCHITECTURE}
 %else
+%if %{__is_tizen_x} == 1
+%define OUTPUT_BASE_FOLDER out.tz_X.%{repo_name}.%{ARCHITECTURE}
+%else
 %define OUTPUT_BASE_FOLDER out.tz_v%{tizen_version_major}.%{tizen_version_minor}.%{repo_name}.%{ARCHITECTURE}
 %endif
+%endif
 
 export GN_GENERATOR_OUTPUT=$PWD/%{OUTPUT_BASE_FOLDER}
 
index 7ed7887..3fcf1eb 100755 (executable)
@@ -363,6 +363,7 @@ function setupAndExecuteTargetBuild() {
       PROFILE=tzwr_5.5_arm-spin
     elif [[ $platform == "Base-X" ]]; then
       PROFILE=tz_X
+      ARGS+=(--define "_is_tizen_x 1")
     else
       echo "Cannot set default PROFILE for platform=${platform}"
       exit 1