mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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>
This commit is contained in:
parent
f3cd830c09
commit
4d6f772ff1
|
|
@ -49,7 +49,7 @@ SRC_URI[gn.sha256sum] = "f706aaa0676e3e22f5fc9ca482295d7caee8535d1869f99efa23581
|
|||
|
||||
require perfetto.inc
|
||||
|
||||
DEPENDS += " ninja-native"
|
||||
DEPENDS += " ninja-native gn-native"
|
||||
|
||||
# Use clang in order to enable traced_perf ( see https://github.com/google/perfetto/blob/092d0ceace6fa516fac1bd4e715c226eaaebe26e/gn/perfetto.gni#L177 ,
|
||||
# enable_perfetto_traced_perf depends on "is_clang")
|
||||
|
|
@ -73,8 +73,8 @@ do_configure () {
|
|||
cd ${S}
|
||||
# Rename a few build tools if they have not been renamed
|
||||
cd buildtools
|
||||
x="gn-linux64-1968-0725d782"
|
||||
[ -f $x ] && mkdir linux64 && mv $x linux64/gn
|
||||
|
||||
mkdir linux64 && cp ${RECIPE_SYSROOT_NATIVE}${bindir}/gn linux64/gn
|
||||
chmod +x linux64/gn
|
||||
cd ..
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user