[M108 Migration] Support standard build for armv7hl architecture 83/289083/6
authorChandan Padhi <c.padhi@samsung.com>
Mon, 28 Feb 2022 11:41:14 +0000 (17:11 +0530)
committerBot Blink <blinkbot@samsung.com>
Fri, 3 Mar 2023 15:09:10 +0000 (15:09 +0000)
This commit adds support to build standard profile for armv7hl
architecture. This also adds clang-format binary built for armv7hl.

Build command:
$ ./tizen_src/build/build_standard_armv7hl.sh

References:
https://review.tizen.org/gerrit/c/271778
https://review.tizen.org/gerrit/c/274635

Change-Id: Iddef3f406ba56ee9982a65a6c2e676bb44150c2d
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
Signed-off-by: uzair <uzair.jaleel@samsung.com>
packaging/chromium-efl.spec
third_party/blink/renderer/bindings/scripts/bind_gen/style_format.py
third_party/libyuv/libyuv.gni
tizen_src/build/build_standard_armv7hl.sh [new file with mode: 0755]
tizen_src/build/gn_chromiumefl.sh
tizen_src/buildtools/armv7hl/clang-format [new file with mode: 0755]

index 7036545..0544ce2 100755 (executable)
@@ -178,6 +178,9 @@ BuildRequires: binutils-gold
 %ifarch armv7l
 %define ARCHITECTURE armv7l
 %endif
+%ifarch armv7hl
+%define ARCHITECTURE armv7hl
+%endif
 %ifarch aarch64
 %define ARCHITECTURE aarch64
 %endif
@@ -395,6 +398,8 @@ Chromium EFL unit test utilities
 
 export GN_GENERATOR_OUTPUT=$PWD/%{OUTPUT_BASE_FOLDER}
 
+export BUILD_ARCH=%{ARCHITECTURE}
+
 #set build mode
 %global OUTPUT_FOLDER %{OUTPUT_BASE_FOLDER}
 
@@ -426,6 +431,9 @@ touch ./tizen_src/downloadable/ewk_api_wrapper_generator.py
   "tizen_version_major=%{tizen_version_major}" \
   "tizen_version_minor=%{tizen_version_minor}" \
   "tizen_version_patch=%{tizen_version_patch}" \
+%ifarch armv7hl
+  "arm_float_abi=\"hard\"" \
+%endif
 %if 0%{?_remove_webcore_debug_symbols:1}
   "remove_webcore_debug_symbols=true" \
 %endif
index 9b4030b..c1aece4 100644 (file)
@@ -58,13 +58,17 @@ def init(root_src_dir, enable_style_format=True):
         host_arch_type = host_arch.read().strip()
         tizenbuildtools_dir = os.path.join(root_src_dir + "/tizen_src",
                                            "buildtools")
-        if (host_arch_type == "x64"):
+        if (host_arch_type == "x86_64"):
             _clang_format_command_path = os.path.join(
                 buildtools_platform_dir, "clang-format{}".format(exe_suffix))
-        elif (host_arch_type == "x86"):
+        elif (host_arch_type == "ix86"):
             _clang_format_command_path = os.path.join(
                 tizenbuildtools_dir + "/i586/",
                 "clang-format{}".format(exe_suffix))
+        elif (host_arch_type == "armv7hl"):
+            _clang_format_command_path = os.path.join(
+                tizenbuildtools_dir + "/armv7hl/",
+                "clang-format{}".format(exe_suffix))
         else:
             _clang_format_command_path = os.path.join(
                 tizenbuildtools_dir + "/arm/",
index 852f08c..0781acf 100644 (file)
@@ -15,7 +15,7 @@ declare_args() {
   libyuv_disable_jpeg = false
   libyuv_use_neon =
       current_cpu == "arm64" ||
-      (current_cpu == "arm" && (arm_use_neon || arm_optionally_use_neon))
+      ((current_cpu == "arm" && is_clang) && (arm_use_neon || arm_optionally_use_neon))
   libyuv_use_msa =
       (current_cpu == "mips64el" || current_cpu == "mipsel") && mips_use_msa
   libyuv_use_mmi =
diff --git a/tizen_src/build/build_standard_armv7hl.sh b/tizen_src/build/build_standard_armv7hl.sh
new file mode 100755 (executable)
index 0000000..8a1fee8
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+. `dirname $0`/common.sh
+
+setupAndExecuteTargetBuild unified --standard "$@" -A armv7hl
index ee92353..b6f6222 100755 (executable)
@@ -148,7 +148,7 @@ add_desktop_flags() {
 }
 
 add_arm_flags() {
-  ADDITIONAL_GN_PARAMETERS+="arm_use_neon=false
+  ADDITIONAL_GN_PARAMETERS+="arm_use_neon=true
                             "
   if [ "$host_arch" == "arm64" ]; then
     ADDITIONAL_GN_PARAMETERS+="system_libdir=\"lib64\"
@@ -182,6 +182,7 @@ add_tizen_flags() {
                              use_real_dbus_clients=false
                              use_nss_certs=true
                              use_system_libwayland=true
+                             v8_use_external_startup_data=true
                             "
 
   # FIXME : Note that the v8_snapshot_toolchain has been set to wrong
@@ -322,7 +323,10 @@ _GN_ARGS="
     $EXTRA_GN_ARGS
     "
 
-echo $host_arch > host_arch.txt
+if [ "$target" == "tizen" ]; then
+  echo $BUILD_ARCH > host_arch.txt
+fi
+
 echo $target > target.txt
 echo $target > third_party/node/target.txt
 
diff --git a/tizen_src/buildtools/armv7hl/clang-format b/tizen_src/buildtools/armv7hl/clang-format
new file mode 100755 (executable)
index 0000000..3bcb056
Binary files /dev/null and b/tizen_src/buildtools/armv7hl/clang-format differ