From 9927a3d72e2272d8e3dc4785ba02e27802ee1c6c Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Wed, 23 Mar 2016 14:52:05 +0200 Subject: bitbake.conf: rename 'gobject-introspection-data' machine feature to 'qemu-usermode' The new value is more general and better reflects what having the feature really means. Introspection data, then, is built only if 'gobject-introspection-data' is in DISTRO_FEATURES and 'qemu-usermode' is in MACHINE_FEATURES. Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- meta/classes/gobject-introspection-data.bbclass | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 meta/classes/gobject-introspection-data.bbclass (limited to 'meta/classes/gobject-introspection-data.bbclass') diff --git a/meta/classes/gobject-introspection-data.bbclass b/meta/classes/gobject-introspection-data.bbclass new file mode 100644 index 0000000000..b1bdd268e6 --- /dev/null +++ b/meta/classes/gobject-introspection-data.bbclass @@ -0,0 +1,9 @@ +# This variable is set to True if gobject-introspection-data is in +# DISTRO_FEATURES and qemu-usermode is in MACHINE_FEATURES, and False otherwise. +# +# It should be used in recipes to determine whether introspection data should be built, +# so that qemu use can be avoided when necessary. +GI_DATA_ENABLED = "${@bb.utils.contains('DISTRO_FEATURES', 'gobject-introspection-data', \ + bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'True', 'False', d), 'False', d)}" + + -- cgit v1.2.3