mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-06 04:49:29 +00:00
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>
This commit is contained in:
committed by
Koen Kooi
parent
eb6c7f77b7
commit
71f61f799c
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user