summaryrefslogtreecommitdiff
path: root/poky
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2020-01-13 07:41:23 +0300
committerAndrew Geissler <geissonator@yahoo.com>2020-03-30 23:02:41 +0300
commitb92a82d42f700c92ea180eb9a21ab5a2d7dfdd70 (patch)
treeacd3dcffc8239c031372e408ecc8ec1708f29221 /poky
parentc5966303178fe5f1de050d914499f349d52534b1 (diff)
downloadopenbmc-b92a82d42f700c92ea180eb9a21ab5a2d7dfdd70.tar.xz
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> Change-Id: I3edfd9f105e350ca58bdfa09f905013f144798fd Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'poky')
-rw-r--r--poky/meta/recipes-kernel/perf/perf.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/poky/meta/recipes-kernel/perf/perf.bb b/poky/meta/recipes-kernel/perf/perf.bb
index 5f0ba7c18..840f3008b 100644
--- a/poky/meta/recipes-kernel/perf/perf.bb
+++ b/poky/meta/recipes-kernel/perf/perf.bb
@@ -241,6 +241,7 @@ do_configure_prepend () {
sed -i 's,/usr/bin/python,/usr/bin/env python3,' "${s}"
sed -i 's,/usr/bin/python2,/usr/bin/env python3,' "${s}"
sed -i 's,/usr/bin/env python2,/usr/bin/env python3,' "${s}"
+ sed -i 's,/usr/bin/python3,/usr/bin/env python3,' "${s}"
done
# unistd.h can be out of sync between libc-headers and the captured version in the perf source