diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-05-21 19:00:18 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-27 11:04:47 +0100 |
commit | 2e29151a3a660871db3009fc64a5e1e72f1827b0 (patch) | |
tree | 47b607f1599116ae7e82e0df70c56cfece422fcc | |
parent | e620119715673af7dc7c24a0c643bcab6dce71d0 (diff) | |
download | poky-2e29151a3a660871db3009fc64a5e1e72f1827b0.tar.gz |
bitbake.conf: propagate 'opengl' DISTRO_FEATURE to native/nativesdk from target
This will allow better control over native virgl/qemu configurations.
Adjust gtk+3/cairo native configurations to actually ignore opengl
when building for -native: we do not need it, and it would cause build
failures as only a limited subset of mesa-native is currently built.
Drop native/nativesdk overrides from virglrenderer/libepoxy recipes
as opengl feature is now correctly set for those variants.
(From OE-Core rev: 0e1f8fa0535dab63742f575b52ec9fa891368ca2)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/conf/bitbake.conf | 4 | ||||
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk+3.inc | 2 | ||||
-rw-r--r-- | meta/recipes-graphics/cairo/cairo_1.16.0.bb | 2 | ||||
-rw-r--r-- | meta/recipes-graphics/libepoxy/libepoxy_1.5.4.bb | 2 | ||||
-rw-r--r-- | meta/recipes-graphics/virglrenderer/virglrenderer_0.8.2.bb | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index bdade79abe..f7700f1191 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -833,8 +833,8 @@ DISTRO_FEATURES_NATIVESDK ?= "x11" | |||
833 | 833 | ||
834 | # Normally target distro features will not be applied to native builds: | 834 | # Normally target distro features will not be applied to native builds: |
835 | # Native distro features on this list will use the target feature value | 835 | # Native distro features on this list will use the target feature value |
836 | DISTRO_FEATURES_FILTER_NATIVE ?= "api-documentation" | 836 | DISTRO_FEATURES_FILTER_NATIVE ?= "api-documentation opengl" |
837 | DISTRO_FEATURES_FILTER_NATIVESDK ?= "api-documentation" | 837 | DISTRO_FEATURES_FILTER_NATIVESDK ?= "api-documentation opengl" |
838 | 838 | ||
839 | DISTRO_FEATURES_BACKFILL = "pulseaudio sysvinit gobject-introspection-data ldconfig" | 839 | DISTRO_FEATURES_BACKFILL = "pulseaudio sysvinit gobject-introspection-data ldconfig" |
840 | MACHINE_FEATURES_BACKFILL = "rtc qemu-usermode" | 840 | MACHINE_FEATURES_BACKFILL = "rtc qemu-usermode" |
diff --git a/meta/recipes-gnome/gtk+/gtk+3.inc b/meta/recipes-gnome/gtk+/gtk+3.inc index 5d1f59ea1a..6154154004 100644 --- a/meta/recipes-gnome/gtk+/gtk+3.inc +++ b/meta/recipes-gnome/gtk+/gtk+3.inc | |||
@@ -46,6 +46,8 @@ do_compile_prepend() { | |||
46 | 46 | ||
47 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl wayland x11', d)} \ | 47 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl wayland x11', d)} \ |
48 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'glx', '', d)}" | 48 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'glx', '', d)}" |
49 | PACKAGECONFIG_class-native = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" | ||
50 | PACKAGECONFIG_class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" | ||
49 | 51 | ||
50 | PACKAGECONFIG[x11] = "--enable-x11-backend,--disable-x11-backend,at-spi2-atk fontconfig libx11 libxext libxcursor libxi libxdamage libxrandr libxrender libxcomposite libxfixes" | 52 | PACKAGECONFIG[x11] = "--enable-x11-backend,--disable-x11-backend,at-spi2-atk fontconfig libx11 libxext libxcursor libxi libxdamage libxrandr libxrender libxcomposite libxfixes" |
51 | # this is provided by oe-core patch that removes epoxy/gl dependency from a X11 build | 53 | # this is provided by oe-core patch that removes epoxy/gl dependency from a X11 build |
diff --git a/meta/recipes-graphics/cairo/cairo_1.16.0.bb b/meta/recipes-graphics/cairo/cairo_1.16.0.bb index b772c2ece2..092c77b826 100644 --- a/meta/recipes-graphics/cairo/cairo_1.16.0.bb +++ b/meta/recipes-graphics/cairo/cairo_1.16.0.bb | |||
@@ -42,6 +42,8 @@ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'directfb', d)} \ | |||
42 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)} \ | 42 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)} \ |
43 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)} \ | 43 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)} \ |
44 | trace" | 44 | trace" |
45 | PACKAGECONFIG_class-native = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)}" | ||
46 | PACKAGECONFIG_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)}" | ||
45 | 47 | ||
46 | PACKAGECONFIG[x11] = "--with-x=yes -enable-xlib,--with-x=no --disable-xlib,${X11DEPENDS}" | 48 | PACKAGECONFIG[x11] = "--with-x=yes -enable-xlib,--with-x=no --disable-xlib,${X11DEPENDS}" |
47 | PACKAGECONFIG[xcb] = "--enable-xcb,--disable-xcb,libxcb" | 49 | PACKAGECONFIG[xcb] = "--enable-xcb,--disable-xcb,libxcb" |
diff --git a/meta/recipes-graphics/libepoxy/libepoxy_1.5.4.bb b/meta/recipes-graphics/libepoxy/libepoxy_1.5.4.bb index 0782c6ce35..6646ef79fe 100644 --- a/meta/recipes-graphics/libepoxy/libepoxy_1.5.4.bb +++ b/meta/recipes-graphics/libepoxy/libepoxy_1.5.4.bb | |||
@@ -19,8 +19,6 @@ UPSTREAM_CHECK_URI = "https://github.com/anholt/libepoxy/releases" | |||
19 | inherit meson pkgconfig features_check | 19 | inherit meson pkgconfig features_check |
20 | 20 | ||
21 | REQUIRED_DISTRO_FEATURES = "opengl" | 21 | REQUIRED_DISTRO_FEATURES = "opengl" |
22 | REQUIRED_DISTRO_FEATURES_class-native = "" | ||
23 | REQUIRED_DISTRO_FEATURES_class-nativesdk = "" | ||
24 | 22 | ||
25 | PACKAGECONFIG[egl] = "-Degl=yes, -Degl=no, virtual/egl" | 23 | PACKAGECONFIG[egl] = "-Degl=yes, -Degl=no, virtual/egl" |
26 | PACKAGECONFIG[x11] = "-Dglx=yes, -Dglx=no -Dx11=false, virtual/libx11 virtual/libgl" | 24 | PACKAGECONFIG[x11] = "-Dglx=yes, -Dglx=no -Dx11=false, virtual/libx11 virtual/libgl" |
diff --git a/meta/recipes-graphics/virglrenderer/virglrenderer_0.8.2.bb b/meta/recipes-graphics/virglrenderer/virglrenderer_0.8.2.bb index 1046b8504f..29b12628d0 100644 --- a/meta/recipes-graphics/virglrenderer/virglrenderer_0.8.2.bb +++ b/meta/recipes-graphics/virglrenderer/virglrenderer_0.8.2.bb | |||
@@ -22,5 +22,3 @@ inherit meson pkgconfig features_check | |||
22 | BBCLASSEXTEND = "native nativesdk" | 22 | BBCLASSEXTEND = "native nativesdk" |
23 | 23 | ||
24 | REQUIRED_DISTRO_FEATURES = "opengl" | 24 | REQUIRED_DISTRO_FEATURES = "opengl" |
25 | REQUIRED_DISTRO_FEATURES_class-native = "" | ||
26 | REQUIRED_DISTRO_FEATURES_class-nativesdk = "" | ||