[oe-commits] Richard Purdie : perf: Fix parsing error

git at git.openembedded.org git at git.openembedded.org
Tue Mar 19 13:23:56 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 053ca014e7eb8c9dd05cef42fe23f463f3eb15dd
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=053ca014e7eb8c9dd05cef42fe23f463f3eb15dd

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Tue Mar 19 13:22:59 2013 +0000

perf: Fix parsing error

Due to the use of ${@...} the code will try and expand this when
performing the initial parsing. If the sysroot doesn't exist with
an existing kernel, this will fail at parsing time.

Sinec we're already in python, just remove the ${@....} wrapping
and then we execute at do_package time which is what we want.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-kernel/perf/perf.bb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 182dd25..210c4cb 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -105,7 +105,7 @@ do_configure_prepend () {
 }
 
 python do_package_prepend() {
-    bb.data.setVar('PKGV', '${@get_kernelversion('${S}').split("-")[0]}', d)
+    bb.data.setVar('PKGV', get_kernelversion('${S}').split("-")[0], d)
 }
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"





More information about the Openembedded-commits mailing list