summaryrefslogtreecommitdiffstats
path: root/meta-oe/classes/systemd.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/classes/systemd.bbclass')
-rw-r--r--meta-oe/classes/systemd.bbclass11
1 files changed, 6 insertions, 5 deletions
diff --git a/meta-oe/classes/systemd.bbclass b/meta-oe/classes/systemd.bbclass
index 0329b904f..a8c77c8a1 100644
--- a/meta-oe/classes/systemd.bbclass
+++ b/meta-oe/classes/systemd.bbclass
@@ -28,6 +28,9 @@ systemctl disable ${SYSTEMD_SERVICE}
28 28
29def systemd_after_parse(d): 29def systemd_after_parse(d):
30 def systemd_check_vars(): 30 def systemd_check_vars():
31 if d.getVar('BB_WORKERCONTEXT', True) is not None:
32 return
33
31 bb_filename = d.getVar('FILE') 34 bb_filename = d.getVar('FILE')
32 packages = d.getVar('PACKAGES', 1) 35 packages = d.getVar('PACKAGES', 1)
33 36
@@ -66,11 +69,9 @@ def systemd_after_parse(d):
66 69
67 70
68 bpn = d.getVar('BPN', 1) 71 bpn = d.getVar('BPN', 1)
69 # not for native / only at parse time 72 if bpn + "-native" != d.getVar('PN', 1) and \
70 if d.getVar('BB_WORKERCONTEXT', True) is None and \ 73 bpn + "-cross" != d.getVar('PN', 1) and \
71 bpn + "-native" != d.getVar('PN', 1) and \ 74 bpn + "-nativesdk" != d.getVar('PN', 1):
72 bpn + "-cross" != d.getVar('PN', 1) and \
73 bpn + "-nativesdk" != d.getVar('PN', 1):
74 systemd_check_vars() 75 systemd_check_vars()
75 for pkg_systemd in d.getVar('SYSTEMD_PACKAGES', 1).split(): 76 for pkg_systemd in d.getVar('SYSTEMD_PACKAGES', 1).split():
76 systemd_create_package(pkg_systemd) 77 systemd_create_package(pkg_systemd)