mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
systemd bbclass: allow recipes to silence WARNING during parsing when ${PN}-systemd is unwanted
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
@@ -43,7 +43,10 @@ def systemd_after_parse(d):
|
||||
"\n\n%s: %s in SYSTEMD_PACKAGES does not match <existing-package>-systemd or ${PN} (deprecated)" % \
|
||||
(bb_filename, pkg_systemd)
|
||||
else:
|
||||
bb.warn("%s: it is recommended to set SYSTEMD_PACKAGES as <existing-package>-systemd" % bb_filename)
|
||||
# Only complain if recipe lacks native systemd support
|
||||
native_systemd_support = d.getVar('NATIVE_SYSTEMD_SUPPORT', 1) or ""
|
||||
if native_systemd_support == "":
|
||||
bb.warn("%s: it is recommended to set SYSTEMD_PACKAGES as <existing-package>-systemd" % bb_filename)
|
||||
else:
|
||||
pkg_systemd_base = pkg_systemd.replace('-systemd', '')
|
||||
if pkg_systemd_base not in packages:
|
||||
|
||||
Reference in New Issue
Block a user