summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/libepoxy
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-02-07 01:02:46 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-02-16 18:05:39 +0000
commit848aa6541f8d887124f4e5d0ba337828fb5c3ac8 (patch)
tree7d8f1191f1cc08020d127a598bb4e0a4d4d00978 /meta/recipes-graphics/libepoxy
parent0001a4259e664156d0a1b28bbc512ed29dbfd764 (diff)
downloadpoky-848aa6541f8d887124f4e5d0ba337828fb5c3ac8.tar.gz
libepoxy: Define MESA_EGL_NO_X11_HEADERS when GLX is disabled
This helps when libepoxy is compiled with egl but glx is disabled it also depends on GL implementation provided eglplatform.h to be using MESA_EGL_NO_X11_HEADERS to exclude X11 headers, e.g. mesa, mali-userland implementations use this define to exclude x11 headers (From OE-Core rev: 2655f7d26847424ac207e6e468a78a4ad293c4e9) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/libepoxy')
-rw-r--r--meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch30
-rw-r--r--meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb1
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch b/meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch
new file mode 100644
index 0000000000..ebe5754a7a
--- /dev/null
+++ b/meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch
@@ -0,0 +1,30 @@
1From 62e178ddae24c7633d2a03b129dc52261e0a15bf Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 7 Feb 2018 00:48:03 -0800
4Subject: [PATCH] Define MESA_EGL_NO_X11_HEADERS before including eglplatform.h
5 when X11 is disabled
6
7This helps in compiling when GL implementations e.g. mesa use
8this define to exclude X11 headers
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12Upstream-Status: Submitted [https://github.com/anholt/libepoxy/pull/153]
13
14 src/dispatch_common.h | 3 +++
15 1 file changed, 3 insertions(+)
16
17Index: libepoxy-1.4.3/src/dispatch_common.h
18===================================================================
19--- libepoxy-1.4.3.orig/src/dispatch_common.h
20+++ libepoxy-1.4.3/src/dispatch_common.h
21@@ -46,6 +46,9 @@
22 #include "epoxy/glx.h"
23 #endif
24 #if PLATFORM_HAS_EGL
25+#if !PLATFORM_HAS_GLX
26+#define MESA_EGL_NO_X11_HEADERS 1
27+#endif
28 #include "epoxy/egl.h"
29 #endif
30 #if PLATFORM_HAS_WGL
diff --git a/meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb b/meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb
index 72167a2fb8..8a5cb8f49f 100644
--- a/meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb
+++ b/meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=58ef4c80d401e07bd9ee8b6b58cf464b"
8SRC_URI = "https://github.com/anholt/${BPN}/releases/download/${PV}/${BP}.tar.xz \ 8SRC_URI = "https://github.com/anholt/${BPN}/releases/download/${PV}/${BP}.tar.xz \
9 file://Add-fallback-definition-for-EGL-CAST.patch \ 9 file://Add-fallback-definition-for-EGL-CAST.patch \
10 file://0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch \ 10 file://0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch \
11 file://0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch \
11 " 12 "
12SRC_URI[md5sum] = "af4c3ce0fb1143bdc4e43f85695a9bed" 13SRC_URI[md5sum] = "af4c3ce0fb1143bdc4e43f85695a9bed"
13SRC_URI[sha256sum] = "0b808a06c9685a62fca34b680abb8bc7fb2fda074478e329b063c1f872b826f6" 14SRC_URI[sha256sum] = "0b808a06c9685a62fca34b680abb8bc7fb2fda074478e329b063c1f872b826f6"