summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Li <rongqing.li@windriver.com>2015-07-01 09:54:14 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-09 16:37:43 -0700
commit4e224f3922821984fbce3515c90bed8aa63b2318 (patch)
tree993a67906cddfea6afa6c2fc490302d5cf73935c
parent2f2b0e84282035be4e80a4a9dabbd511f4e0abc6 (diff)
downloadast2050-yocto-poky-4e224f3922821984fbce3515c90bed8aa63b2318.zip
ast2050-yocto-poky-4e224f3922821984fbce3515c90bed8aa63b2318.tar.gz
bootchart2: add runtime dependency
Bootchartd needs the command lsb_release and pidof to run, pidof maybe provided by sysvinit or procpus; To native bootchart2, only pybootchartgui is used, and which is not needed both pidof and lsb_release (From OE-Core rev: d0d641bf8cbf96d7c30dfcbdf2572d2709b56858) (From OE-Core rev: a8f64210776ee2399d25c6249b4deb715938c4f9) Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/bootchart2/bootchart2_git.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/bootchart2/bootchart2_git.bb b/meta/recipes-devtools/bootchart2/bootchart2_git.bb
index 5fc7211..ea9f179 100644
--- a/meta/recipes-devtools/bootchart2/bootchart2_git.bb
+++ b/meta/recipes-devtools/bootchart2/bootchart2_git.bb
@@ -143,6 +143,8 @@ do_install () {
PACKAGES =+ "pybootchartgui"
FILES_pybootchartgui += "${libdir}/python*/site-packages/pybootchartgui ${bindir}/pybootchartgui"
RDEPENDS_pybootchartgui = "python-pycairo python-compression python-image python-textutils python-shell python-compression python-codecs"
+RDEPENDS_${PN}_class-target += "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit-pidof', 'procps', d)}"
+RDEPENDS_${PN}_class-target += "lsb"
DEPENDS_append_class-native = " python-pycairo-native"
PACKAGES =+ "bootchartd-stop-initscript"
OpenPOWER on IntegriCloud