]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
perf: fix reproduciblity in older releases of Linux
authorRoss Burton <ross.burton@arm.com>
Wed, 20 Jul 2022 16:08:52 +0000 (17:08 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Jul 2022 12:55:13 +0000 (13:55 +0100)
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.

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>
meta/recipes-kernel/perf/perf.bb

index 603d3f9eeedc5e1bc792213affe61260ff5de116..95e7eae9fee5d3f74f3408d2e7ea637dc5fbea7b 100644 (file)
@@ -227,6 +227,9 @@ do_configure:prepend () {
         # reproducible.
         sed -i -e 's,$(call get-executable-or-default\,PYTHON\,$(PYTHON_AUTO)),$(notdir $(call get-executable-or-default\,PYTHON\,$(PYTHON_AUTO))),g' \
             ${S}/tools/perf/Makefile.config
+        # The same line is in older releases, but looking explicitly for Python 2
+        sed -i -e 's,$(call get-executable-or-default\,PYTHON\,$(PYTHON2)),$(notdir $(call get-executable-or-default\,PYTHON\,$(PYTHON2))),g' \
+            ${S}/tools/perf/Makefile.config
 
        # likewise with this substitution. Kernels with commit 18f2967418d031a39
        # [perf tools: Use Python devtools for version autodetection rather than runtime]