summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/perf
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2020-01-12 23:41:23 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-16 22:33:09 +0000
commite5c4f3127521607742f7cdf62481b64cf4d3e828 (patch)
tree76230b81e0c4b2e7cd21ad108a20f8fd7ee2c1d8 /meta/recipes-kernel/perf
parent5adf27290e3ba6199c678b2a240d76fcd2c21c7c (diff)
downloadpoky-e5c4f3127521607742f7cdf62481b64cf4d3e828.tar.gz
perf: fix build for v5.5+
In kernel 5.5+ there are python3 scripts that explicitly use /usr/bin/python3 as the interpreter. That will find the host python and produce undefined results. We add that interpreter path to our substitutions to ensure that our sysroot variant is used. (From OE-Core rev: 103316d50d4947b3c3500eb5cbc4845702a62d22) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.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.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 5f0ba7c180..840f3008b5 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -241,6 +241,7 @@ do_configure_prepend () {
241 sed -i 's,/usr/bin/python,/usr/bin/env python3,' "${s}" 241 sed -i 's,/usr/bin/python,/usr/bin/env python3,' "${s}"
242 sed -i 's,/usr/bin/python2,/usr/bin/env python3,' "${s}" 242 sed -i 's,/usr/bin/python2,/usr/bin/env python3,' "${s}"
243 sed -i 's,/usr/bin/env python2,/usr/bin/env python3,' "${s}" 243 sed -i 's,/usr/bin/env python2,/usr/bin/env python3,' "${s}"
244 sed -i 's,/usr/bin/python3,/usr/bin/env python3,' "${s}"
244 done 245 done
245 246
246 # unistd.h can be out of sync between libc-headers and the captured version in the perf source 247 # unistd.h can be out of sync between libc-headers and the captured version in the perf source