diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2012-04-18 10:43:26 +0200 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-04-18 10:49:50 +0200 |
commit | 21c47cff7a2bfc07c6c2a4850e8c7aaf921b2294 (patch) | |
tree | a45f997cf20f8a5e00e0f74bb8a0875331785e8d /meta-oe | |
parent | 9ef0b3d45750ed65d8c26b8ce228376172de327c (diff) | |
download | meta-openembedded-21c47cff7a2bfc07c6c2a4850e8c7aaf921b2294.tar.gz |
systemd bbclass: allow recipes to silence WARNING during parsing when ${PN}-systemd is unwanted
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/classes/systemd.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-oe/classes/systemd.bbclass b/meta-oe/classes/systemd.bbclass index 4e99a53b0..d8e30f4af 100644 --- a/meta-oe/classes/systemd.bbclass +++ b/meta-oe/classes/systemd.bbclass | |||
@@ -43,7 +43,10 @@ def systemd_after_parse(d): | |||
43 | "\n\n%s: %s in SYSTEMD_PACKAGES does not match <existing-package>-systemd or ${PN} (deprecated)" % \ | 43 | "\n\n%s: %s in SYSTEMD_PACKAGES does not match <existing-package>-systemd or ${PN} (deprecated)" % \ |
44 | (bb_filename, pkg_systemd) | 44 | (bb_filename, pkg_systemd) |
45 | else: | 45 | else: |
46 | bb.warn("%s: it is recommended to set SYSTEMD_PACKAGES as <existing-package>-systemd" % bb_filename) | 46 | # Only complain if recipe lacks native systemd support |
47 | native_systemd_support = d.getVar('NATIVE_SYSTEMD_SUPPORT', 1) or "" | ||
48 | if native_systemd_support == "": | ||
49 | bb.warn("%s: it is recommended to set SYSTEMD_PACKAGES as <existing-package>-systemd" % bb_filename) | ||
47 | else: | 50 | else: |
48 | pkg_systemd_base = pkg_systemd.replace('-systemd', '') | 51 | pkg_systemd_base = pkg_systemd.replace('-systemd', '') |
49 | if pkg_systemd_base not in packages: | 52 | if pkg_systemd_base not in packages: |