|
@@ -233,11 +233,8 @@ do_configure_prepend () {
|
|
|
fi
|
|
|
|
|
|
# use /usr/bin/env instead of version specific python
|
|
|
- for s in `find ${S}/tools/perf/ -name '*.py'`; do
|
|
|
- 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}"
|
|
|
+ for s in `find ${S}/tools/perf/ -name '*.py'` `find ${S}/scripts/ -name 'bpf_helpers_doc.py'`; do
|
|
|
+ sed -i -e "s,#!.*python.*,#!${USRBINPATH}/env python3," ${s}
|
|
|
done
|
|
|
|
|
|
# unistd.h can be out of sync between libc-headers and the captured version in the perf source
|