summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorHenning Heinold <henning@itconsulting-heinold.de>2014-06-24 23:34:46 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-03 13:47:22 +0100
commit2e2a6d0c4e54eda550294d9394ed77315886b8ac (patch)
treeb262cbe8b593e17922e7d733266dc7a22d2d9a6d /meta
parenta63f07c4ce8216b59c61ed97616766328b42a2b2 (diff)
downloadpoky-2e2a6d0c4e54eda550294d9394ed77315886b8ac.tar.gz
perf: split packging
* some fundamental perf commands can work without the dependency on perl, python or bash make them separate packages and RSUGGEST them * bump PR The patch was sponsored by sysmocom (From OE-Core rev: a6f79561f7a2f6bc354d5ea8d84b836ac5c9b08f) Signed-off-by: Henning Heinold <henning@itconsulting-heinold.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-kernel/perf/perf.bb21
1 files changed, 15 insertions, 6 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 0c258e7287..63d356ed51 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -9,7 +9,7 @@ as well."
9LICENSE = "GPLv2" 9LICENSE = "GPLv2"
10LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" 10LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
11 11
12PR = "r8" 12PR = "r9"
13 13
14require perf-features.inc 14require perf-features.inc
15 15
@@ -30,9 +30,6 @@ DEPENDS = "virtual/kernel \
30 bison flex \ 30 bison flex \
31 " 31 "
32 32
33SCRIPTING_RDEPENDS = "${@perf_feature_enabled('perf-scripting', 'perl perl-modules python', '',d)}"
34RDEPENDS_${PN} += "elfutils bash ${SCRIPTING_RDEPENDS}"
35
36PROVIDES = "virtual/perf" 33PROVIDES = "virtual/perf"
37 34
38inherit linux-kernel-base kernel-arch pythonnative 35inherit linux-kernel-base kernel-arch pythonnative
@@ -127,6 +124,18 @@ python do_package_prepend() {
127 124
128PACKAGE_ARCH = "${MACHINE_ARCH}" 125PACKAGE_ARCH = "${MACHINE_ARCH}"
129 126
130FILES_${PN} += "${libexecdir}/perf-core" 127PACKAGES =+ "${PN}-archive ${PN}-tests ${PN}-perl ${PN}-python"
128
129RDEPENDS_${PN} += "elfutils"
130RDEPENDS_${PN}-archive =+ "bash"
131RDEPENDS_${PN}-python =+ "bash python"
132RDEPENDS_${PN}-perl =+ "bash perl perl-modules"
133
134RSUGGESTS_SCRIPTING = "${@perf_feature_enabled('perf-scripting', '${PN}-perl ${PN}-python', '',d)}"
135RSUGGESTS_${PN} += "${PN}-archive ${PN}-tests ${RSUGGESTS_SCRIPTING}"
136
131FILES_${PN}-dbg += "${libdir}/python*/site-packages/.debug" 137FILES_${PN}-dbg += "${libdir}/python*/site-packages/.debug"
132FILES_${PN} += "${libdir}/python*/site-packages" 138FILES_${PN}-archive = "${libdir}/perf/perf-core/perf-archive"
139FILES_${PN}-tests = "${libdir}/perf/perf-core/tests"
140FILES_${PN}-python = "${libdir}/python*/site-packages ${libdir}/perf/perf-core/scripts/python"
141FILES_${PN}-perl = "${libdir}/perf/perf-core/scripts/perl"