summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/files
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-07-15 12:44:02 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-18 10:18:42 +0100
commitea9d7095a641b4dbf2b8f0dabd5099159e45ce82 (patch)
treeec835372597f580f475f0ed4dc7230659531fe80 /meta/recipes-graphics/mesa/files
parenta24e8944e76dd6647a810a4a509b2dca0e3e86af (diff)
downloadpoky-ea9d7095a641b4dbf2b8f0dabd5099159e45ce82.tar.gz
mesa: Fix build with wayland and egl
When wayland and egl both are on then it enables the wayland plugin which actually fails to build because its not finding wayland-protocol xml templates in proper location which is recipe sysroot since we are cross compiling Fixes build errors e.g. make[4]: *** No rule to make target `//usr/share/wayland-protocols/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml', needed by `drivers/dri2/linux-dmabuf-unstable-v1-client-protocol.h'. Stop. make[4]: *** Waiting for unfinished jobs.... (From OE-Core rev: ff4762e94faa095abd7175810d1053fdd361058f) 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/mesa/files')
-rw-r--r--meta/recipes-graphics/mesa/files/cross-compile-WAYLAND_PROTOCOLS_DATADIR.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/files/cross-compile-WAYLAND_PROTOCOLS_DATADIR.patch b/meta/recipes-graphics/mesa/files/cross-compile-WAYLAND_PROTOCOLS_DATADIR.patch
new file mode 100644
index 0000000000..b4e3c4995f
--- /dev/null
+++ b/meta/recipes-graphics/mesa/files/cross-compile-WAYLAND_PROTOCOLS_DATADIR.patch
@@ -0,0 +1,24 @@
1use PKG_CHECK_VAR for defining WAYLAND_PROTOCOLS_DATADIR
2
3This allows to override the wayland-protocols pkgdatadir with the
4WAYLAND_PROTOCOLS_DATADIR from environment.
5
6pkgconfig would return an absolute path in /usr/share/wayland-protocols
7for the pkgdatadir value, which is not suitable for cross-compiling.
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10Upstream-Status: Pending
11
12Index: mesa-18.1.2/configure.ac
13===================================================================
14--- mesa-18.1.2.orig/configure.ac
15+++ mesa-18.1.2/configure.ac
16@@ -1808,7 +1808,7 @@ for plat in $platforms; do
17 PKG_CHECK_MODULES([WAYLAND_CLIENT], [wayland-client >= $WAYLAND_REQUIRED])
18 PKG_CHECK_MODULES([WAYLAND_SERVER], [wayland-server >= $WAYLAND_REQUIRED])
19 PKG_CHECK_MODULES([WAYLAND_PROTOCOLS], [wayland-protocols >= $WAYLAND_PROTOCOLS_REQUIRED])
20- WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
21+ PKG_CHECK_VAR([WAYLAND_PROTOCOLS_DATADIR], [wayland-protocols >= $WAYLAND_PROTOCOLS_REQUIRED], pkgdatadir)
22
23 AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
24