summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/perf/perf.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/perf/perf.bb')
-rw-r--r--meta/recipes-kernel/perf/perf.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 3c499224c7..182dd25d6e 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -32,7 +32,7 @@ RDEPENDS_${PN} += "elfutils bash ${SCRIPTING_RDEPENDS}"
32 32
33PROVIDES = "virtual/perf" 33PROVIDES = "virtual/perf"
34 34
35inherit kernel-arch pythonnative 35inherit linux-kernel-base kernel-arch pythonnative
36 36
37# needed for building the tools/perf Python bindings 37# needed for building the tools/perf Python bindings
38inherit python-dir 38inherit python-dir
@@ -104,6 +104,10 @@ do_configure_prepend () {
104 sed -i 's,-Werror ,,' ${S}/tools/perf/Makefile 104 sed -i 's,-Werror ,,' ${S}/tools/perf/Makefile
105} 105}
106 106
107python do_package_prepend() {
108 bb.data.setVar('PKGV', '${@get_kernelversion('${S}').split("-")[0]}', d)
109}
110
107PACKAGE_ARCH = "${MACHINE_ARCH}" 111PACKAGE_ARCH = "${MACHINE_ARCH}"
108 112
109FILES_${PN} += "${libexecdir}/perf-core" 113FILES_${PN} += "${libexecdir}/perf-core"