summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinette Chatre <reinette.chatre@intel.com>2015-05-29 12:49:15 -0700
committerReinette Chatre <reinette.chatre@intel.com>2015-12-02 16:00:11 -0800
commit7599024709c8d09a8a2475dbabc0ae66f09f9ba1 (patch)
tree1348f0caea0bba174baa1e554cc1429455cabf93
parent1690bc7153628c5bd035f2bd0e528f0c44f7164d (diff)
downloadmeta-systemdev-7599024709c8d09a8a2475dbabc0ae66f09f9ba1.tar.gz
meta-systemdev-7599024709c8d09a8a2475dbabc0ae66f09f9ba1.tar.bz2
meta-systemdev-7599024709c8d09a8a2475dbabc0ae66f09f9ba1.zip
turbostat: support new kernel build process
Poky commit 86893e4ea5896199a "kernel: Rearrange for 1.8" made significant changes in the kernel build process that includes moving the kernel source and build artifacts out of sstate control and into a shared location. We build turbostat from the kernel source and need to accommodate these upstream changes adding the new dependency of "do_shared_workdir". In addition we inherit the new "kernelsrc" class instead of depending on kernel (virtual/kernel) self. This feature was added in 86893e4ea5896199a. Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
-rw-r--r--recipes-kernel/turbostat/turbostat.bb13
1 files changed, 4 insertions, 9 deletions
diff --git a/recipes-kernel/turbostat/turbostat.bb b/recipes-kernel/turbostat/turbostat.bb
index 6c927c5..e55ec72 100644
--- a/recipes-kernel/turbostat/turbostat.bb
+++ b/recipes-kernel/turbostat/turbostat.bb
@@ -7,16 +7,11 @@ or statistics are printed periodically."
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
-DEPENDS = "virtual/kernel"
+inherit kernelsrc
PROVIDES = "virtual/turbostat"
-inherit linux-kernel-base
-
-do_populate_lic[depends] += "virtual/kernel:do_populate_sysroot"
-
-S = "${STAGING_KERNEL_DIR}"
-# The source should be ready after the do_unpack
-do_unpack[depends] += "virtual/kernel:do_populate_sysroot"
+do_populate_lic[depends] += "virtual/kernel:do_patch"
+do_configure[depends] += "virtual/kernel:do_shared_workdir"
B = "${WORKDIR}/${BPN}-${PV}"
@@ -52,5 +47,5 @@ do_install() {
}
python do_package_prepend() {
- bb.data.setVar('PKGV', get_kernelversion('${S}').split("-")[0], d)
+ d.setVar('PKGV', d.getVar("KERNEL_VERSION", True).split("-")[0])
}