diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2013-03-18 23:58:07 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-19 11:54:22 +0000 |
commit | 15ab96040f244d398954363f09e5a8110076fd29 (patch) | |
tree | d870864f0c3e352ab84cd08bc9cde043c815c149 /meta/recipes-kernel/perf/perf.bb | |
parent | 05985a7c22655a2f35ff0fcec723173c404c7993 (diff) | |
download | poky-15ab96040f244d398954363f09e5a8110076fd29.tar.gz |
perf: make PKGV match kernel version
Have perf grab and use the kernel version it's built from for PKGV,
rather than the default perf recipe version, so the final packages get
the kernel version instead of the default 1.0, which represents a
backwards value from the previous recipe.
(From OE-Core rev: deb99cefe8be7fa63972edadf69f92d361b9a7c5)
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/perf/perf.bb')
-rw-r--r-- | meta/recipes-kernel/perf/perf.bb | 6 |
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 | ||
33 | PROVIDES = "virtual/perf" | 33 | PROVIDES = "virtual/perf" |
34 | 34 | ||
35 | inherit kernel-arch pythonnative | 35 | inherit 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 |
38 | inherit python-dir | 38 | inherit 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 | ||
107 | python do_package_prepend() { | ||
108 | bb.data.setVar('PKGV', '${@get_kernelversion('${S}').split("-")[0]}', d) | ||
109 | } | ||
110 | |||
107 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 111 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
108 | 112 | ||
109 | FILES_${PN} += "${libexecdir}/perf-core" | 113 | FILES_${PN} += "${libexecdir}/perf-core" |