summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-06-16 14:31:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-10 22:46:19 +0100
commitbf53c74e803f4928a149ab1d888674a6bb01ef19 (patch)
treebf877a378a766f5e890aab6c1f47e2f5ff785f33 /meta
parentde1578c82524f11936331bffe9bd9300944a7dfc (diff)
downloadpoky-bf53c74e803f4928a149ab1d888674a6bb01ef19.tar.gz
perf: Use python3targetconfig to ensure we use target libraries
We've seen some reproducibility issues on the autobuilder in perf where the size of the python module varies slightly between systems. After some head scratching and removing the --quiet option to the python module build, you can see it using -Lrecipe-sysroot-native in the linking commandline for the module. This means it is linking against the native library on systems where that works, skipping it and using the target one otherwise, probably with warnings in logs we've not seen. The fix is to inherit the python3targetconfig class which ensures that the target sysroot is used, then the byte differences between the builds go away and things are sane(r) again. (From OE-Core rev: 8d625ded4a943fe9f0a8134d66cb2908b1947cae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 8e2b6c042edd9ec76cb8281247604e4f81518780) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-kernel/perf/perf.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index b6f50583f7..e04047e85a 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -45,7 +45,7 @@ PROVIDES = "virtual/perf"
45inherit linux-kernel-base kernel-arch manpages 45inherit linux-kernel-base kernel-arch manpages
46 46
47# needed for building the tools/perf Python bindings 47# needed for building the tools/perf Python bindings
48inherit ${@bb.utils.contains('PACKAGECONFIG', 'scripting', 'python3native', '', d)} 48inherit ${@bb.utils.contains('PACKAGECONFIG', 'scripting', 'python3targetconfig', '', d)}
49inherit python3-dir 49inherit python3-dir
50export PYTHON_SITEPACKAGES_DIR 50export PYTHON_SITEPACKAGES_DIR
51 51