summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Heinold <henning@itconsulting-heinold.de>2014-06-09 23:21:29 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-03 13:47:18 +0100
commit793afb3e814c70d65afeea8962e9bd150e122a52 (patch)
treefe65a245b2a2d783194895117415d89a310783a2
parentaebbf8c8f3fadc477c70f0c958c28fddc773b974 (diff)
downloadpoky-793afb3e814c70d65afeea8962e9bd150e122a52.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: 7d00247a3b204cdb35a9baa1eda0eed9a54dbebf) Signed-off-by: Henning Heinold <henning@itconsulting-heinold.de> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-kernel/perf/perf.bb22
1 files changed, 17 insertions, 5 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 9996f663cd..92d37e269c 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
@@ -27,9 +27,6 @@ DEPENDS = "virtual/kernel \
27 bison flex \ 27 bison flex \
28 " 28 "
29 29
30SCRIPTING_RDEPENDS = "${@perf_feature_enabled('perf-scripting', 'perl perl-modules python', '',d)}"
31RDEPENDS_${PN} += "elfutils bash ${SCRIPTING_RDEPENDS}"
32
33PROVIDES = "virtual/perf" 30PROVIDES = "virtual/perf"
34 31
35inherit linux-kernel-base kernel-arch pythonnative 32inherit linux-kernel-base kernel-arch pythonnative
@@ -153,8 +150,23 @@ python do_package_prepend() {
153 150
154PACKAGE_ARCH = "${MACHINE_ARCH}" 151PACKAGE_ARCH = "${MACHINE_ARCH}"
155 152
153
154PACKAGES =+ "${PN}-archive ${PN}-tests ${PN}-perl ${PN}-python"
155
156RDEPENDS_${PN} += "elfutils"
157RDEPENDS_${PN}-archive =+ "bash"
158RDEPENDS_${PN}-python =+ "bash python"
159RDEPENDS_${PN}-perl =+ "bash perl perl-modules"
160
161RSUGGESTS_SCRIPTING = "${@perf_feature_enabled('perf-scripting', '${PN}-perl ${PN}-python', '',d)}"
162RSUGGESTS_${PN} += "${PN}-archive ${PN}-tests ${RSUGGESTS_SCRIPTING}"
163
156FILES_${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core ${libdir}/traceevent" 164FILES_${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core ${libdir}/traceevent"
157FILES_${PN}-dbg += "${libdir}/python*/site-packages/.debug" 165FILES_${PN}-dbg += "${libdir}/python*/site-packages/.debug"
158FILES_${PN} += "${libdir}/python*/site-packages" 166FILES_${PN}-archive = "${libdir}/perf/perf-core/perf-archive"
167FILES_${PN}-tests = "${libdir}/perf/perf-core/tests"
168FILES_${PN}-python = "${libdir}/python*/site-packages ${libdir}/perf/perf-core/scripts/python"
169FILES_${PN}-perl = "${libdir}/perf/perf-core/scripts/perl"
170
159 171
160INHIBIT_PACKAGE_DEBUG_SPLIT="1" 172INHIBIT_PACKAGE_DEBUG_SPLIT="1"