summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-kernel/perf/perf.bb7
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index d707b58..904aca9 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -233,11 +233,8 @@ do_configure_prepend () {
233 fi 233 fi
234 234
235 # use /usr/bin/env instead of version specific python 235 # use /usr/bin/env instead of version specific python
236 for s in `find ${S}/tools/perf/ -name '*.py'`; do 236 for s in `find ${S}/tools/perf/ -name '*.py'` `find ${S}/scripts/ -name 'bpf_helpers_doc.py'`; do
237 sed -i 's,/usr/bin/python,/usr/bin/env python3,' "${s}" 237 sed -i -e "s,#!.*python.*,#!${USRBINPATH}/env python3," ${s}
238 sed -i 's,/usr/bin/python2,/usr/bin/env python3,' "${s}"
239 sed -i 's,/usr/bin/env python2,/usr/bin/env python3,' "${s}"
240 sed -i 's,/usr/bin/python3,/usr/bin/env python3,' "${s}"
241 done 238 done
242 239
243 # unistd.h can be out of sync between libc-headers and the captured version in the perf source 240 # unistd.h can be out of sync between libc-headers and the captured version in the perf source