From 21c47cff7a2bfc07c6c2a4850e8c7aaf921b2294 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Wed, 18 Apr 2012 10:43:26 +0200 Subject: systemd bbclass: allow recipes to silence WARNING during parsing when ${PN}-systemd is unwanted Signed-off-by: Koen Kooi --- meta-oe/classes/systemd.bbclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta-oe/classes/systemd.bbclass b/meta-oe/classes/systemd.bbclass index 4e99a53..d8e30f4 100644 --- a/meta-oe/classes/systemd.bbclass +++ b/meta-oe/classes/systemd.bbclass @@ -43,7 +43,10 @@ def systemd_after_parse(d): "\n\n%s: %s in SYSTEMD_PACKAGES does not match -systemd or ${PN} (deprecated)" % \ (bb_filename, pkg_systemd) else: - bb.warn("%s: it is recommended to set SYSTEMD_PACKAGES as -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 -systemd" % bb_filename) else: pkg_systemd_base = pkg_systemd.replace('-systemd', '') if pkg_systemd_base not in packages: -- cgit v1.2.3-18-g5258