diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-09-26 22:51:05 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-10-02 10:17:48 -0700 |
| commit | 4d6f772ff10695816781985f41e818efe8ec0e8c (patch) | |
| tree | 00a933e74774dbc7461c6e0d3feb47e3eff3f339 /meta-oe | |
| parent | f3cd830c094400ec9250141a09dd642de7c631c8 (diff) | |
| download | meta-openembedded-4d6f772ff10695816781985f41e818efe8ec0e8c.tar.gz | |
perfetto: Use gn from native sysroot
Prebuilts shipped with sources is a x86_64 binary which works ok
on x86_64 build hosts, but we do have arm64 hosts quite commonly
used to build OE these days, where this fails miserably. Therefore
use the gn from gn-native, so we can get it targtted correctly for
build host architecture.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Ross Burton <ross.burton@arm.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-devtools/perfetto/perfetto.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-oe/recipes-devtools/perfetto/perfetto.bb b/meta-oe/recipes-devtools/perfetto/perfetto.bb index a2a4c9f39e..d697485e69 100644 --- a/meta-oe/recipes-devtools/perfetto/perfetto.bb +++ b/meta-oe/recipes-devtools/perfetto/perfetto.bb | |||
| @@ -49,7 +49,7 @@ SRC_URI[gn.sha256sum] = "f706aaa0676e3e22f5fc9ca482295d7caee8535d1869f99efa23581 | |||
| 49 | 49 | ||
| 50 | require perfetto.inc | 50 | require perfetto.inc |
| 51 | 51 | ||
| 52 | DEPENDS += " ninja-native" | 52 | DEPENDS += " ninja-native gn-native" |
| 53 | 53 | ||
| 54 | # Use clang in order to enable traced_perf ( see https://github.com/google/perfetto/blob/092d0ceace6fa516fac1bd4e715c226eaaebe26e/gn/perfetto.gni#L177 , | 54 | # Use clang in order to enable traced_perf ( see https://github.com/google/perfetto/blob/092d0ceace6fa516fac1bd4e715c226eaaebe26e/gn/perfetto.gni#L177 , |
| 55 | # enable_perfetto_traced_perf depends on "is_clang") | 55 | # enable_perfetto_traced_perf depends on "is_clang") |
| @@ -73,8 +73,8 @@ do_configure () { | |||
| 73 | cd ${S} | 73 | cd ${S} |
| 74 | # Rename a few build tools if they have not been renamed | 74 | # Rename a few build tools if they have not been renamed |
| 75 | cd buildtools | 75 | cd buildtools |
| 76 | x="gn-linux64-1968-0725d782" | 76 | |
| 77 | [ -f $x ] && mkdir linux64 && mv $x linux64/gn | 77 | mkdir linux64 && cp ${RECIPE_SYSROOT_NATIVE}${bindir}/gn linux64/gn |
| 78 | chmod +x linux64/gn | 78 | chmod +x linux64/gn |
| 79 | cd .. | 79 | cd .. |
| 80 | 80 | ||
