On 07/28/2014 09:00 PM, Burton, Ross wrote:
On 28 July 2014 06:34, Chen Qi <qi.c...@windriver.com> wrote:
+# This package is only for systemd based systems. So building it with 'systemd'
+# missing in DISTRO_FEATURES makes no sense.
+python () {
+    if not bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d):
+        raise bb.parse.SkipPackage("'systemd' not in DISTRO_FEATURES")
+}
There's a class to help with this: distro_features_check.bbclass.

Ross



Got it. I'll send out a V2.

Thanks!

//Chen Qi
--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to