From 75a5297369c7b04cef098e2a76f7f8f4781764aa Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 12 Sep 2016 12:46:26 +0100 Subject: classes/gobject-introspecton-data: lazy assign GI_DATA_ENABLED By letting a recipe assign GI_DATA_ENABLED trivially there is a simple and clear way to disable gobject-introspection for specific build configurations. Signed-off-by: Ross Burton --- meta/classes/gobject-introspection-data.bbclass | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'meta') diff --git a/meta/classes/gobject-introspection-data.bbclass b/meta/classes/gobject-introspection-data.bbclass index b1bdd268e6..2ef684626a 100644 --- a/meta/classes/gobject-introspection-data.bbclass +++ b/meta/classes/gobject-introspection-data.bbclass @@ -3,7 +3,5 @@ # # 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', \ +GI_DATA_ENABLED ?= "${@bb.utils.contains('DISTRO_FEATURES', 'gobject-introspection-data', \ bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'True', 'False', d), 'False', d)}" - - -- cgit 1.2.3-korg