aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/classes
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2012-02-16 02:02:58 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2012-02-23 16:46:31 +0100
commit71f61f799c3102680f6b78179c1b1d6b837ed8b4 (patch)
tree620626a52549bc651c5632e165e57530b36d2def /meta-oe/classes
parenteb6c7f77b7c1e9b1ba377bfb4fb2f0c6735c604f (diff)
downloadmeta-openembedded-71f61f799c3102680f6b78179c1b1d6b837ed8b4.tar.gz
meta-openembedded-71f61f799c3102680f6b78179c1b1d6b837ed8b4.tar.bz2
meta-openembedded-71f61f799c3102680f6b78179c1b1d6b837ed8b4.zip
systemd.bbclass: automatically create packages set in SYSTEMD_PACKAGES
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Acked-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/classes')
-rw-r--r--meta-oe/classes/systemd.bbclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-oe/classes/systemd.bbclass b/meta-oe/classes/systemd.bbclass
index 651735755..e779bef29 100644
--- a/meta-oe/classes/systemd.bbclass
+++ b/meta-oe/classes/systemd.bbclass
@@ -63,8 +63,17 @@ def systemd_after_parse(d):
if systemd_services == "":
raise bb.build.FuncFailed, "\n\n%s inherits systemd but doesn't set SYSTEMD_SERVICE / %s" % (bb_filename, service_pkg)
+ # prepend systemd-packages not already included
+ def systemd_create_package(pkg_systemd):
+ packages = d.getVar('PACKAGES', 1)
+ if not pkg_systemd in packages:
+ packages = "%s %s" % (pkg_systemd, packages)
+ d.setVar('PACKAGES', packages)
+
systemd_check_vars()
+ for pkg_systemd in d.getVar('SYSTEMD_PACKAGES', 1).split():
+ systemd_create_package(pkg_systemd)
python __anonymous() {