diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-graphics/mesa/files/cross-compile-WAYLAND_PROTOCOLS_DATADIR.patch | 24 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 2 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa_18.1.3.bb | 1 |
3 files changed, 27 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 @@ | |||
1 | use PKG_CHECK_VAR for defining WAYLAND_PROTOCOLS_DATADIR | ||
2 | |||
3 | This allows to override the wayland-protocols pkgdatadir with the | ||
4 | WAYLAND_PROTOCOLS_DATADIR from environment. | ||
5 | |||
6 | pkgconfig would return an absolute path in /usr/share/wayland-protocols | ||
7 | for the pkgdatadir value, which is not suitable for cross-compiling. | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Index: 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 | |||
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index cc01ea73b4..945272507a 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
@@ -107,6 +107,8 @@ FULL_OPTIMIZATION_append = " -fno-omit-frame-pointer" | |||
107 | 107 | ||
108 | CFLAGS_append_armv5 = " -DMISSING_64BIT_ATOMICS" | 108 | CFLAGS_append_armv5 = " -DMISSING_64BIT_ATOMICS" |
109 | 109 | ||
110 | EXTRA_OEMAKE += "WAYLAND_PROTOCOLS_DATADIR=${STAGING_DATADIR}/wayland-protocols" | ||
111 | |||
110 | # Remove the mesa dependency on mesa-dev, as mesa is empty | 112 | # Remove the mesa dependency on mesa-dev, as mesa is empty |
111 | RDEPENDS_${PN}-dev = "" | 113 | RDEPENDS_${PN}-dev = "" |
112 | 114 | ||
diff --git a/meta/recipes-graphics/mesa/mesa_18.1.3.bb b/meta/recipes-graphics/mesa/mesa_18.1.3.bb index e4aad1d047..0b49793c9d 100644 --- a/meta/recipes-graphics/mesa/mesa_18.1.3.bb +++ b/meta/recipes-graphics/mesa/mesa_18.1.3.bb | |||
@@ -7,6 +7,7 @@ SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \ | |||
7 | file://0006-Use-Python-3-to-execute-the-scripts.patch \ | 7 | file://0006-Use-Python-3-to-execute-the-scripts.patch \ |
8 | file://0007-dri-i965-Add-missing-time.h-include.patch \ | 8 | file://0007-dri-i965-Add-missing-time.h-include.patch \ |
9 | file://0008-egl-fix-build-race-in-automake.patch \ | 9 | file://0008-egl-fix-build-race-in-automake.patch \ |
10 | file://cross-compile-WAYLAND_PROTOCOLS_DATADIR.patch \ | ||
10 | " | 11 | " |
11 | 12 | ||
12 | SRC_URI[md5sum] = "b34273403a605f6f98ead00f0bdf8e0b" | 13 | SRC_URI[md5sum] = "b34273403a605f6f98ead00f0bdf8e0b" |