diff options
| -rw-r--r-- | meta/recipes-kernel/perf/perf.bb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index 8b86290201..e9c5c0c9f3 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb | |||
| @@ -183,6 +183,11 @@ do_configure_prepend () { | |||
| 183 | sed -i 's,#include "tests/tests.h",#include "tests/tests.h"\n#include "util/debug.h",' ${S}/tools/perf/arch/arm/tests/dwarf-unwind.c | 183 | sed -i 's,#include "tests/tests.h",#include "tests/tests.h"\n#include "util/debug.h",' ${S}/tools/perf/arch/arm/tests/dwarf-unwind.c |
| 184 | sed -i 's,#include "perf_regs.h",#include "perf_regs.h"\n#include "util/debug.h",' ${S}/tools/perf/arch/arm/util/unwind-libunwind.c | 184 | sed -i 's,#include "perf_regs.h",#include "perf_regs.h"\n#include "util/debug.h",' ${S}/tools/perf/arch/arm/util/unwind-libunwind.c |
| 185 | fi | 185 | fi |
| 186 | |||
| 187 | # use /usr/bin/env instead of version specific python | ||
| 188 | for s in `find ${S}/tools/perf/scripts/python/ -name '*.py'`; do | ||
| 189 | sed -i 's,/usr/bin/python2,/usr/bin/env python,' "${s}" | ||
| 190 | done | ||
| 186 | } | 191 | } |
| 187 | 192 | ||
| 188 | python do_package_prepend() { | 193 | python do_package_prepend() { |
| @@ -205,8 +210,9 @@ RSUGGESTS_${PN} += "${PN}-archive ${PN}-tests ${RSUGGESTS_SCRIPTING}" | |||
| 205 | 210 | ||
| 206 | FILES_${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core ${libdir}/traceevent" | 211 | FILES_${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core ${libdir}/traceevent" |
| 207 | FILES_${PN}-archive = "${libdir}/perf/perf-core/perf-archive" | 212 | FILES_${PN}-archive = "${libdir}/perf/perf-core/perf-archive" |
| 208 | FILES_${PN}-tests = "${libdir}/perf/perf-core/tests" | 213 | FILES_${PN}-tests = "${libdir}/perf/perf-core/tests ${libexecdir}/perf-core/tests" |
| 209 | FILES_${PN}-python = "${libdir}/python*/site-packages ${libdir}/perf/perf-core/scripts/python" | 214 | FILES_${PN}-python = "${libdir}/python*/site-packages ${libdir}/perf/perf-core/scripts/python" |
| 215 | FILES_${PN}-python += "${libexecdir}/perf-core/scripts/python/*" | ||
| 210 | FILES_${PN}-perl = "${libdir}/perf/perf-core/scripts/perl" | 216 | FILES_${PN}-perl = "${libdir}/perf/perf-core/scripts/perl" |
| 211 | 217 | ||
| 212 | 218 | ||
