Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] perf: set PKGV to matching kernel version
@ 2013-03-19  4:58 tom.zanussi
  2013-03-19  4:58 ` [PATCH 1/1] perf: make PKGV match " tom.zanussi
  0 siblings, 1 reply; 2+ messages in thread
From: tom.zanussi @ 2013-03-19  4:58 UTC (permalink / raw)
  To: openembedded-core; +Cc: Tom Zanussi

From: Tom Zanussi <tom.zanussi@linux.intel.com>

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(-)

-- 
1.7.11.4




^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] perf: make PKGV match kernel version
  2013-03-19  4:58 [PATCH 0/1] perf: set PKGV to matching kernel version tom.zanussi
@ 2013-03-19  4:58 ` tom.zanussi
  0 siblings, 0 replies; 2+ messages in thread
From: tom.zanussi @ 2013-03-19  4:58 UTC (permalink / raw)
  To: openembedded-core; +Cc: Tom Zanussi

From: Tom Zanussi <tom.zanussi@linux.intel.com>

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.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
---
 meta/recipes-kernel/perf/perf.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 3c49922..182dd25 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}"
 
 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"
-- 
1.7.11.4




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-19  5:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-19  4:58 [PATCH 0/1] perf: set PKGV to matching kernel version tom.zanussi
2013-03-19  4:58 ` [PATCH 1/1] perf: make PKGV match " tom.zanussi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox