aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/perfetto/files/0001-Remove-check_build_deps-build-steps.patch
blob: 28fa983874eaf249a2f758749ce4d2371a647874 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
From 3b7091243ec03054ca8800b51b85a1c09e7e3075 Mon Sep 17 00:00:00 2001
From: Sui Chen <suichen6@gmail.com>
Date: Mon, 13 Jun 2022 17:46:49 +0000
Subject: [PATCH] Remove "check_build_deps" build steps

When building with Bitbake, we want Bitbake to manage our dependencies,
so we remove the "check_build_deps" steps from Perfetto.

Also setting "is_cross_compiling" to true, so that the host-side tools
(such as protoc) will always be generated using the native toolchain,
rather than the Bitbake-generated one.

Signed-off-by: Sui Chen <suichen6@gmail.com>
---
 gn/BUILD.gn                  |  1 -
 gn/standalone/BUILD.gn       | 12 ++++++------
 gn/standalone/BUILDCONFIG.gn |  5 +++--
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index 8a7ca72a8..e4a2d39f0 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -111,7 +111,6 @@ group("default_deps") {
   deps = [ ":gen_buildflags" ]
   if (perfetto_build_standalone) {
     public_deps = [
-      "//gn/standalone:check_build_deps",
       "//gn/standalone/libc++:deps",
       "//gn/standalone/sanitizers:deps",
     ]
diff --git a/gn/standalone/BUILD.gn b/gn/standalone/BUILD.gn
index 582e9b867..9c77ac64c 100644
--- a/gn/standalone/BUILD.gn
+++ b/gn/standalone/BUILD.gn
@@ -441,10 +441,10 @@ config("android_liblog") {
 }
 
 # Checks that tools/install-build-deps has been run since it last changed.
-perfetto_check_build_deps("check_build_deps") {
-  args = []
-}
+#perfetto_check_build_deps("check_build_deps") {
+#  args = []
+#}
 
-perfetto_check_build_deps("check_build_deps_android") {
-  args = [ "--android" ]
-}
+#perfetto_check_build_deps("check_build_deps_android") {
+#  args = [ "--android" ]
+#}
diff --git a/gn/standalone/BUILDCONFIG.gn b/gn/standalone/BUILDCONFIG.gn
index 6f32686c1..c041989b0 100644
--- a/gn/standalone/BUILDCONFIG.gn
+++ b/gn/standalone/BUILDCONFIG.gn
@@ -59,8 +59,9 @@ declare_args() {
   # the ossfuzz sanitizer overrides this to true. In that config the
   # host/target cpu and arch are identical, but we want to build only the
   # targets with the sanitizer/fuzzer flags
-  is_cross_compiling =
-      target_cpu != host_cpu || target_os != host_os || target_triplet != ""
+
+  # for Bitbake build
+  is_cross_compiling = true
 }
 default_configs = [
   "//gn/standalone:debug_symbols",
-- 
2.37.1