mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 12:32:12 +02:00
perf: fix reproducibility in 5.19+
kernels with upstream commit 630af16eee495f583db5202c3613d1b191f10694 [perf tools: Use Python devtools for version autodetection rather than runtime], or -stable backports of that commmit, evade our substitutions for reproducibility. We add a second sed expression to ensure that our definition of python is used, as we have the proper environement setup and don't need the full path of python, which eventually will be captured by the perf binaries. (From OE-Core rev: 171415e38e526033a0423f4dc39e9d8e9dc4e5f6) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit b24e73fb34049061ea03a6f2b6a54cdbee7b406b) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
dd826b85ae
commit
1db72445e3
@@ -228,6 +228,12 @@ do_configure:prepend () {
|
||||
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
|
||||
|
||||
# likewise with this substitution. Kernels with commit 18f2967418d031a39
|
||||
# [perf tools: Use Python devtools for version autodetection rather than runtime]
|
||||
# need this substitution for reproducibility.
|
||||
sed -i -e 's,$(call get-executable-or-default\,PYTHON\,$(subst -config\,\,$(PYTHON_AUTO))),$(notdir $(call get-executable-or-default\,PYTHON\,$(subst -config\,\,$(PYTHON_AUTO)))),g' \
|
||||
${S}/tools/perf/Makefile.config
|
||||
|
||||
# The following line:
|
||||
# srcdir_SQ = $(patsubst %tools/perf,tools/perf,$(subst ','\'',$(srcdir))),
|
||||
# Captures the full src path of perf, which of course makes it not
|
||||
|
||||
Reference in New Issue
Block a user