summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-08-16 19:20:41 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-18 23:46:38 +0100
commita964a54ebf8fc9cbf6d842d0aacd32b3a819302c (patch)
treecba61627157fa575f840f5939a33e73583c1c6de /meta
parentad140e7788d4cdcb740701850b90c617c76f23d4 (diff)
downloadpoky-a964a54ebf8fc9cbf6d842d0aacd32b3a819302c.tar.gz
mesa: Fix build with llvmpipe enabled on musl
(From OE-Core rev: d8adf829f3fb58a41235f05c04ce700bf5d55ba7) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/mesa/files/0001-winsys-svga-drm-Include-sys-types.h.patch34
-rw-r--r--meta/recipes-graphics/mesa/mesa_17.1.5.bb3
2 files changed, 36 insertions, 1 deletions
diff --git a/meta/recipes-graphics/mesa/files/0001-winsys-svga-drm-Include-sys-types.h.patch b/meta/recipes-graphics/mesa/files/0001-winsys-svga-drm-Include-sys-types.h.patch
new file mode 100644
index 0000000000..549b8671ab
--- /dev/null
+++ b/meta/recipes-graphics/mesa/files/0001-winsys-svga-drm-Include-sys-types.h.patch
@@ -0,0 +1,34 @@
1From d8750776404b1031d762966d0f551d13d2fe05a7 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 16 Aug 2017 18:58:20 -0700
4Subject: [PATCH] winsys/svga/drm: Include sys/types.h
5
6vmw_screen.h uses dev_t which is defines in sys/types.h
7this header is required to be included for getting dev_t
8definition. This issue happens on musl C library, it is hidden
9on glibc since sys/types.h is included through another
10system headers
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14
15Upstream-Status: Submitted
16
17 src/gallium/winsys/svga/drm/vmw_screen.h | 1 +
18 1 file changed, 1 insertion(+)
19
20diff --git a/src/gallium/winsys/svga/drm/vmw_screen.h b/src/gallium/winsys/svga/drm/vmw_screen.h
21index 0ef8e84..2eda97e 100644
22--- a/src/gallium/winsys/svga/drm/vmw_screen.h
23+++ b/src/gallium/winsys/svga/drm/vmw_screen.h
24@@ -41,6 +41,7 @@
25 #include "svga_winsys.h"
26 #include "pipebuffer/pb_buffer_fenced.h"
27 #include <os/os_thread.h>
28+#include <sys/types.h>
29
30 #define VMW_GMR_POOL_SIZE (16*1024*1024)
31 #define VMW_QUERY_POOL_SIZE (8192)
32--
332.14.1
34
diff --git a/meta/recipes-graphics/mesa/mesa_17.1.5.bb b/meta/recipes-graphics/mesa/mesa_17.1.5.bb
index 36b0377453..4d82452b07 100644
--- a/meta/recipes-graphics/mesa/mesa_17.1.5.bb
+++ b/meta/recipes-graphics/mesa/mesa_17.1.5.bb
@@ -10,7 +10,8 @@ SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
10 file://llvm-config-version.patch \ 10 file://llvm-config-version.patch \
11 file://0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch \ 11 file://0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch \
12 file://0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch \ 12 file://0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch \
13" 13 file://0001-winsys-svga-drm-Include-sys-types.h.patch \
14 "
14SRC_URI[md5sum] = "6cf936fbcaadd98924298a7009e8265d" 15SRC_URI[md5sum] = "6cf936fbcaadd98924298a7009e8265d"
15SRC_URI[sha256sum] = "378516b171712687aace4c7ea8b37c85895231d7a6d61e1e27362cf6034fded9" 16SRC_URI[sha256sum] = "378516b171712687aace4c7ea8b37c85895231d7a6d61e1e27362cf6034fded9"
16 17