summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/perf
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2022-07-20 17:08:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-07-23 13:55:26 +0100
commita0e690138c6c91f95a0ef9d2132d3deea2e7d198 (patch)
tree29ef8bd4e241d1ae3cd4af2ef6623ac9a3b16448 /meta/recipes-kernel/perf
parent8a6f8570922594c45140489a78b5e79268c2ab0a (diff)
downloadpoky-a0e690138c6c91f95a0ef9d2132d3deea2e7d198.tar.gz
perf: fix reproduciblity in older releases of Linux
If you build perf from Linux 5.4 it still contains buildpaths (pointing to the sysroot's Python) as the existing fixes don't apply to the lines in that old release. Add further expressions to remove the final buildpaths. (From OE-Core rev: 6783c1e295e5afafd73a02fd986ca8956a89dda7) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/perf')
-rw-r--r--meta/recipes-kernel/perf/perf.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 603d3f9eee..95e7eae9fe 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -227,6 +227,9 @@ do_configure:prepend () {
227 # reproducible. 227 # reproducible.
228 sed -i -e 's,$(call get-executable-or-default\,PYTHON\,$(PYTHON_AUTO)),$(notdir $(call get-executable-or-default\,PYTHON\,$(PYTHON_AUTO))),g' \ 228 sed -i -e 's,$(call get-executable-or-default\,PYTHON\,$(PYTHON_AUTO)),$(notdir $(call get-executable-or-default\,PYTHON\,$(PYTHON_AUTO))),g' \
229 ${S}/tools/perf/Makefile.config 229 ${S}/tools/perf/Makefile.config
230 # The same line is in older releases, but looking explicitly for Python 2
231 sed -i -e 's,$(call get-executable-or-default\,PYTHON\,$(PYTHON2)),$(notdir $(call get-executable-or-default\,PYTHON\,$(PYTHON2))),g' \
232 ${S}/tools/perf/Makefile.config
230 233
231 # likewise with this substitution. Kernels with commit 18f2967418d031a39 234 # likewise with this substitution. Kernels with commit 18f2967418d031a39
232 # [perf tools: Use Python devtools for version autodetection rather than runtime] 235 # [perf tools: Use Python devtools for version autodetection rather than runtime]