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. (From OE-Core rev: 9927a3d72e2272d8e3dc4785ba02e27802ee1c6c) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f81065f5b2
commit
abd5b24ff7
|
@ -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)}"
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
# Inherit this class in recipes to enable building their introspection files
|
# Inherit this class in recipes to enable building their introspection files
|
||||||
|
|
||||||
# This allows disabling introspection support (and therefore avoiding the use
|
# This sets up autoconf-based recipes to build introspection data (or not),
|
||||||
# of qemu) in recipes if gobject-introspection-data is omitted from
|
# depending on distro and machine features (see gobject-introspection-data class).
|
||||||
# DISTRO_FEATURES or MACHINE_FEATURES.
|
inherit gobject-introspection-data
|
||||||
EXTRA_OECONF_prepend = "${@bb.utils.contains('COMBINED_FEATURES', 'gobject-introspection-data', '--enable-introspection', '--disable-introspection', d)} "
|
EXTRA_OECONF_prepend = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} "
|
||||||
|
|
||||||
UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection --disable-introspection"
|
UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection --disable-introspection"
|
||||||
|
|
||||||
|
|
|
@ -762,7 +762,7 @@ EXTRA_IMAGE_FEATURES ??= ""
|
||||||
IMAGE_FEATURES += "${EXTRA_IMAGE_FEATURES}"
|
IMAGE_FEATURES += "${EXTRA_IMAGE_FEATURES}"
|
||||||
|
|
||||||
DISTRO_FEATURES_BACKFILL = "pulseaudio sysvinit bluez5 gobject-introspection-data"
|
DISTRO_FEATURES_BACKFILL = "pulseaudio sysvinit bluez5 gobject-introspection-data"
|
||||||
MACHINE_FEATURES_BACKFILL = "rtc gobject-introspection-data"
|
MACHINE_FEATURES_BACKFILL = "rtc qemu-usermode"
|
||||||
|
|
||||||
COMBINED_FEATURES = "${@oe.utils.set_intersect('DISTRO_FEATURES', 'MACHINE_FEATURES', d)}"
|
COMBINED_FEATURES = "${@oe.utils.set_intersect('DISTRO_FEATURES', 'MACHINE_FEATURES', d)}"
|
||||||
COMBINED_FEATURES[vardeps] += "DISTRO_FEATURES MACHINE_FEATURES"
|
COMBINED_FEATURES[vardeps] += "DISTRO_FEATURES MACHINE_FEATURES"
|
||||||
|
|
|
@ -25,7 +25,7 @@ TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'mx32', ' -mx32', '', d)}"
|
||||||
TUNE_LDARGS += "${@bb.utils.contains('TUNE_FEATURES', 'mx32', '-m elf32_x86_64', '', d)}"
|
TUNE_LDARGS += "${@bb.utils.contains('TUNE_FEATURES', 'mx32', '-m elf32_x86_64', '', d)}"
|
||||||
TUNE_ASARGS += "${@bb.utils.contains('TUNE_FEATURES', 'mx32', '-x32', '', d)}"
|
TUNE_ASARGS += "${@bb.utils.contains('TUNE_FEATURES', 'mx32', '-x32', '', d)}"
|
||||||
# user mode qemu doesn't support x32
|
# user mode qemu doesn't support x32
|
||||||
MACHINE_FEATURES_BACKFILL_CONSIDERED_append = " ${@bb.utils.contains('TUNE_FEATURES', 'mx32', 'gobject-introspection-data', '', d)}"
|
MACHINE_FEATURES_BACKFILL_CONSIDERED_append = " ${@bb.utils.contains('TUNE_FEATURES', 'mx32', 'qemu-usermode', '', d)}"
|
||||||
|
|
||||||
# ELF64 ABI
|
# ELF64 ABI
|
||||||
TUNEVALID[m64] = "IA32e (x86_64) ELF64 standard ABI"
|
TUNEVALID[m64] = "IA32e (x86_64) ELF64 standard ABI"
|
||||||
|
|
|
@ -16,7 +16,7 @@ SRC_URI = "${GNOME_MIRROR}/${BPN}/1.46/${BPN}-${PV}.tar.xz \
|
||||||
SRC_URI[md5sum] = "adb40a31c7c80b65b0f4c8fd71b493dc"
|
SRC_URI[md5sum] = "adb40a31c7c80b65b0f4c8fd71b493dc"
|
||||||
SRC_URI[sha256sum] = "6658bd3c2b8813eb3e2511ee153238d09ace9d309e4574af27443d87423e4233"
|
SRC_URI[sha256sum] = "6658bd3c2b8813eb3e2511ee153238d09ace9d309e4574af27443d87423e4233"
|
||||||
|
|
||||||
inherit autotools pkgconfig gtk-doc pythonnative qemu
|
inherit autotools pkgconfig gtk-doc pythonnative qemu gobject-introspection-data
|
||||||
BBCLASSEXTEND = "native"
|
BBCLASSEXTEND = "native"
|
||||||
|
|
||||||
# necessary to let the call for python-config from configure.ac succeed
|
# necessary to let the call for python-config from configure.ac succeed
|
||||||
|
@ -105,7 +105,7 @@ EOF
|
||||||
EXTRA_OECONF_class-target += "--enable-host-gi \
|
EXTRA_OECONF_class-target += "--enable-host-gi \
|
||||||
--enable-gi-cross-wrapper=${B}/g-ir-scanner-qemuwrapper \
|
--enable-gi-cross-wrapper=${B}/g-ir-scanner-qemuwrapper \
|
||||||
--enable-gi-ldd-wrapper=${B}/g-ir-scanner-lddwrapper \
|
--enable-gi-ldd-wrapper=${B}/g-ir-scanner-lddwrapper \
|
||||||
${@bb.utils.contains('COMBINED_FEATURES', 'gobject-introspection-data', '--enable-introspection-data', '--disable-introspection-data', d)} \
|
${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection-data', '--disable-introspection-data', d)} \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ PACKAGECONFIG[libhyphen] = "-DUSE_LIBHYPHEN=ON,-DUSE_LIBHYPHEN=OFF,libhyphen"
|
||||||
EXTRA_OECMAKE = " \
|
EXTRA_OECMAKE = " \
|
||||||
-DPORT=GTK \
|
-DPORT=GTK \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
${@bb.utils.contains('COMBINED_FEATURES', 'gobject-introspection-data', '-DENABLE_INTROSPECTION=ON', '-DENABLE_INTROSPECTION=OFF', d)} \
|
${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-DENABLE_INTROSPECTION=ON', '-DENABLE_INTROSPECTION=OFF', d)} \
|
||||||
-DENABLE_GTKDOC=OFF \
|
-DENABLE_GTKDOC=OFF \
|
||||||
-DENABLE_MINIBROWSER=ON \
|
-DENABLE_MINIBROWSER=ON \
|
||||||
"
|
"
|
||||||
|
|
Loading…
Reference in New Issue