diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-11-10 20:39:15 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-11 17:09:16 +0000 |
| commit | 5d7031945dfd0874a83056dbb83dbc49d041b504 (patch) | |
| tree | f455c4a1101744d3e752b77d8489b8d61517e059 /meta/recipes-graphics | |
| parent | 772afb26783d35f3b2fe24d39a344c2749c90c7d (diff) | |
| download | poky-5d7031945dfd0874a83056dbb83dbc49d041b504.tar.gz | |
mesa-demos: drop glx option and patch
As far as I can see the x11 option does the same thing.
(From OE-Core rev: a904c9492e86be39fcdd244e8f4b9768861c0e77)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
| -rw-r--r-- | meta/recipes-graphics/mesa/mesa-demos/0013-only-build-GLX-demos-if-needed.patch | 62 | ||||
| -rw-r--r-- | meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb | 4 |
2 files changed, 1 insertions, 65 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-demos/0013-only-build-GLX-demos-if-needed.patch b/meta/recipes-graphics/mesa/mesa-demos/0013-only-build-GLX-demos-if-needed.patch deleted file mode 100644 index e7be4dfbe1..0000000000 --- a/meta/recipes-graphics/mesa/mesa-demos/0013-only-build-GLX-demos-if-needed.patch +++ /dev/null | |||
| @@ -1,62 +0,0 @@ | |||
| 1 | From 322af294390a7f4e1524c5a79312be6cbebce988 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Awais Belal <awais_belal@mentor.com> | ||
| 3 | Date: Wed, 11 Nov 2015 17:22:12 +0500 | ||
| 4 | Subject: [PATCH] only build GLX demos if needed | ||
| 5 | |||
| 6 | There are platforms that default to EGL only configurations | ||
| 7 | in which case the GLX applications are not required | ||
| 8 | at all. Allow the user to control generation of these | ||
| 9 | demos as needed through a configure switch. | ||
| 10 | |||
| 11 | Signed-off-by: Awais Belal <awais_belal@mentor.com> | ||
| 12 | Upstream-Status: Pending | ||
| 13 | --- | ||
| 14 | configure.ac | 9 +++++++++ | ||
| 15 | src/Makefile.am | 6 +++++- | ||
| 16 | 2 files changed, 14 insertions(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/configure.ac b/configure.ac | ||
| 19 | index f8ec7e3..1a4d96d 100644 | ||
| 20 | --- a/configure.ac | ||
| 21 | +++ b/configure.ac | ||
| 22 | @@ -132,6 +132,11 @@ if test "x$enable_glu" = xyes; then | ||
| 23 | DEMO_LIBS="$DEMO_LIBS $GLU_LIBS" | ||
| 24 | fi | ||
| 25 | |||
| 26 | +AC_ARG_ENABLE([glx-demos], | ||
| 27 | + [AS_HELP_STRING([--enable-glx-demos], | ||
| 28 | + [enable GLX demos @<:@default=auto@:>@])], | ||
| 29 | + [glx_demos_enabled="$enableval"], | ||
| 30 | + [glx_demos_enabled=yes]) | ||
| 31 | AC_ARG_ENABLE([egl], | ||
| 32 | [AS_HELP_STRING([--enable-egl], | ||
| 33 | [enable EGL library @<:@default=auto@:>@])], | ||
| 34 | @@ -325,6 +333,7 @@ AC_SUBST([WAYLAND_LIBS]) | ||
| 35 | |||
| 36 | AM_CONDITIONAL(HAVE_GLU, test "x$glu_enabled" = "xyes") | ||
| 37 | AM_CONDITIONAL(HAVE_GLEW, test "x$glew_enabled" = "xyes") | ||
| 38 | +AM_CONDITIONAL(HAVE_GLX, test "x$glx_demos_enabled" = "xyes") | ||
| 39 | AM_CONDITIONAL(HAVE_EGL, test "x$egl_enabled" = "xyes") | ||
| 40 | AM_CONDITIONAL(HAVE_GLESV1, test "x$glesv1_enabled" = "xyes") | ||
| 41 | AM_CONDITIONAL(HAVE_GLESV2, test "x$glesv2_enabled" = "xyes") | ||
| 42 | diff --git a/src/Makefile.am b/src/Makefile.am | ||
| 43 | index 8b89dee..a4d7e8f 100644 | ||
| 44 | --- a/src/Makefile.am | ||
| 45 | +++ b/src/Makefile.am | ||
| 46 | @@ -44,8 +44,12 @@ SUBDIRS = \ | ||
| 47 | slang \ | ||
| 48 | tests \ | ||
| 49 | tools \ | ||
| 50 | - wgl \ | ||
| 51 | + wgl | ||
| 52 | + | ||
| 53 | +if HAVE_GLX | ||
| 54 | +SUBDIRS += \ | ||
| 55 | xdemos | ||
| 56 | +endif | ||
| 57 | |||
| 58 | if HAVE_GLEW | ||
| 59 | SUBDIRS += \ | ||
| 60 | -- | ||
| 61 | 1.9.1 | ||
| 62 | |||
diff --git a/meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb b/meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb index 368af4e915..01e5b35d0e 100644 --- a/meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb +++ b/meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb | |||
| @@ -17,7 +17,6 @@ SRC_URI = "https://mesa.freedesktop.org/archive/demos/${BPN}-${PV}.tar.bz2 \ | |||
| 17 | file://0008-glsl-perf-Add-few-missing-.glsl-.vert-.frag-files-to.patch \ | 17 | file://0008-glsl-perf-Add-few-missing-.glsl-.vert-.frag-files-to.patch \ |
| 18 | file://0009-glsl-perf-Install-.glsl-.vert-.frag-files.patch \ | 18 | file://0009-glsl-perf-Install-.glsl-.vert-.frag-files.patch \ |
| 19 | file://0012-mesa-demos-OpenVG-demos-with-single-frame-need-eglSw.patch \ | 19 | file://0012-mesa-demos-OpenVG-demos-with-single-frame-need-eglSw.patch \ |
| 20 | file://0013-only-build-GLX-demos-if-needed.patch \ | ||
| 21 | " | 20 | " |
| 22 | SRC_URI[md5sum] = "6b65a02622765522176d00f553086fa3" | 21 | SRC_URI[md5sum] = "6b65a02622765522176d00f553086fa3" |
| 23 | SRC_URI[sha256sum] = "01e99c94a0184e63e796728af89bfac559795fb2a0d6f506fa900455ca5fff7d" | 22 | SRC_URI[sha256sum] = "01e99c94a0184e63e796728af89bfac559795fb2a0d6f506fa900455ca5fff7d" |
| @@ -27,7 +26,7 @@ inherit autotools pkgconfig features_check | |||
| 27 | REQUIRED_DISTRO_FEATURES = "opengl x11" | 26 | REQUIRED_DISTRO_FEATURES = "opengl x11" |
| 28 | 27 | ||
| 29 | PACKAGECONFIG ?= "drm osmesa freetype2 gbm egl gles1 gles2 \ | 28 | PACKAGECONFIG ?= "drm osmesa freetype2 gbm egl gles1 gles2 \ |
| 30 | x11 glew glu glx" | 29 | x11 glew glu" |
| 31 | 30 | ||
| 32 | # The Wayland code doesn't work with Wayland 1.0, so disable it for now | 31 | # The Wayland code doesn't work with Wayland 1.0, so disable it for now |
| 33 | #${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)}" | 32 | #${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)}" |
| @@ -47,7 +46,6 @@ PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,virtual/libgl wayla | |||
| 47 | PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11" | 46 | PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11" |
| 48 | PACKAGECONFIG[glew] = "--enable-glew,--disable-glew,glew" | 47 | PACKAGECONFIG[glew] = "--enable-glew,--disable-glew,glew" |
| 49 | PACKAGECONFIG[glu] = "--enable-glu,--disable-glu,virtual/libgl" | 48 | PACKAGECONFIG[glu] = "--enable-glu,--disable-glu,virtual/libgl" |
| 50 | PACKAGECONFIG[glx] = "--enable-glx-demos,--disable-glx-demos" | ||
| 51 | 49 | ||
| 52 | do_install:append() { | 50 | do_install:append() { |
| 53 | # it can be completely empty when all PACKAGECONFIG options are disabled | 51 | # it can be completely empty when all PACKAGECONFIG options are disabled |
