diff options
| author | Henning Heinold <henning@itconsulting-heinold.de> | 2014-06-24 23:34:46 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-03 13:47:22 +0100 |
| commit | 2e2a6d0c4e54eda550294d9394ed77315886b8ac (patch) | |
| tree | b262cbe8b593e17922e7d733266dc7a22d2d9a6d | |
| parent | a63f07c4ce8216b59c61ed97616766328b42a2b2 (diff) | |
| download | poky-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>
| -rw-r--r-- | meta/recipes-kernel/perf/perf.bb | 21 |
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." | |||
| 9 | LICENSE = "GPLv2" | 9 | LICENSE = "GPLv2" |
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" |
| 11 | 11 | ||
| 12 | PR = "r8" | 12 | PR = "r9" |
| 13 | 13 | ||
| 14 | require perf-features.inc | 14 | require perf-features.inc |
| 15 | 15 | ||
| @@ -30,9 +30,6 @@ DEPENDS = "virtual/kernel \ | |||
| 30 | bison flex \ | 30 | bison flex \ |
| 31 | " | 31 | " |
| 32 | 32 | ||
| 33 | SCRIPTING_RDEPENDS = "${@perf_feature_enabled('perf-scripting', 'perl perl-modules python', '',d)}" | ||
| 34 | RDEPENDS_${PN} += "elfutils bash ${SCRIPTING_RDEPENDS}" | ||
| 35 | |||
| 36 | PROVIDES = "virtual/perf" | 33 | PROVIDES = "virtual/perf" |
| 37 | 34 | ||
| 38 | inherit linux-kernel-base kernel-arch pythonnative | 35 | inherit linux-kernel-base kernel-arch pythonnative |
| @@ -127,6 +124,18 @@ python do_package_prepend() { | |||
| 127 | 124 | ||
| 128 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 125 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 129 | 126 | ||
| 130 | FILES_${PN} += "${libexecdir}/perf-core" | 127 | PACKAGES =+ "${PN}-archive ${PN}-tests ${PN}-perl ${PN}-python" |
| 128 | |||
| 129 | RDEPENDS_${PN} += "elfutils" | ||
| 130 | RDEPENDS_${PN}-archive =+ "bash" | ||
| 131 | RDEPENDS_${PN}-python =+ "bash python" | ||
| 132 | RDEPENDS_${PN}-perl =+ "bash perl perl-modules" | ||
| 133 | |||
| 134 | RSUGGESTS_SCRIPTING = "${@perf_feature_enabled('perf-scripting', '${PN}-perl ${PN}-python', '',d)}" | ||
| 135 | RSUGGESTS_${PN} += "${PN}-archive ${PN}-tests ${RSUGGESTS_SCRIPTING}" | ||
| 136 | |||
| 131 | FILES_${PN}-dbg += "${libdir}/python*/site-packages/.debug" | 137 | FILES_${PN}-dbg += "${libdir}/python*/site-packages/.debug" |
| 132 | FILES_${PN} += "${libdir}/python*/site-packages" | 138 | FILES_${PN}-archive = "${libdir}/perf/perf-core/perf-archive" |
| 139 | FILES_${PN}-tests = "${libdir}/perf/perf-core/tests" | ||
| 140 | FILES_${PN}-python = "${libdir}/python*/site-packages ${libdir}/perf/perf-core/scripts/python" | ||
| 141 | FILES_${PN}-perl = "${libdir}/perf/perf-core/scripts/perl" | ||
