perf: set PKGV to matching kernel version
cover perf: set PKGV to matching kernel version
From: Tom Zanussi <[email protected]>
This makes the perf packages use the kernel version they were built with for their package version instead of the perf recipe version, which is now 1.0 with the rename.
The following changes since commit 87cfde2559daec564731c5c25df04eec27eaf7d5:
syslinux.bbclass: Add a default serial console option and real boot menu support (2013-03-18 21:42:24 +0000)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib.git tzanussi/perf-make-pkgv-match-kernel
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=tzanussi/perf-make-pkgv-match-kernel
Tom Zanussi (1):
perf: make PKGV match kernel version
meta/recipes-kernel/perf/perf.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.11.4
PATCH 1/1 perf: make PKGV match kernel version
From: Tom Zanussi <[email protected]>
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.
--- meta/recipes-kernel/perf/perf.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-kernel/perf/perf.bb +5 -1
@@ -32,7 +32,7 @@ RDEPENDS_${PN} += "elfutils bash ${SCRIPTING_RDEPENDS}" PROVIDES = "virtual/perf" -inherit kernel-arch pythonnative +inherit linux-kernel-base kernel-arch pythonnative # needed for building the tools/perf Python bindings inherit python-dir
@@ -104,6 +104,10 @@ do_configure_prepend () { sed -i 's,-Werror ,,' ${S}/tools/perf/Makefile } +python do_package_prepend() { + bb.data.setVar('PKGV', '${@get_kernelversion('${S}').split("-")[0]}', d) +} + PACKAGE_ARCH = "${MACHINE_ARCH}" FILES_${PN} += "${libexecdir}/perf-core"
Signature · 1 line
1.7.11.4