diff options
Diffstat (limited to 'meta/recipes-kernel/perf/perf.bb')
-rw-r--r-- | meta/recipes-kernel/perf/perf.bb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index 8201c0cb60..904aca95de 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb | |||
@@ -51,7 +51,7 @@ export PYTHON_SITEPACKAGES_DIR | |||
51 | #kernel 3.1+ supports WERROR to disable warnings as errors | 51 | #kernel 3.1+ supports WERROR to disable warnings as errors |
52 | export WERROR = "0" | 52 | export WERROR = "0" |
53 | 53 | ||
54 | do_populate_lic[depends] += "virtual/kernel:do_patch" | 54 | do_populate_lic[depends] += "virtual/kernel:do_shared_workdir" |
55 | 55 | ||
56 | # needed for building the tools/perf Perl binding | 56 | # needed for building the tools/perf Perl binding |
57 | include ${@bb.utils.contains('PACKAGECONFIG', 'scripting', 'perf-perl.inc', '', d)} | 57 | include ${@bb.utils.contains('PACKAGECONFIG', 'scripting', 'perf-perl.inc', '', d)} |
@@ -233,10 +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 | done | 238 | done |
241 | 239 | ||
242 | # 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 |