summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-08-05 23:45:45 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-08-07 16:08:15 +0100
commit70da7c23b4c6b8ac8ec77cd8afc3143c6956dc9f (patch)
tree34289d9c39bb6420b6d5a2938c4510d840928235 /meta/recipes-graphics
parent196e56a5d9cadba43bf014bf78f644add2d12e3a (diff)
downloadpoky-70da7c23b4c6b8ac8ec77cd8afc3143c6956dc9f.tar.gz
virglrender: Fix endianness check on musl
Seen to fail on musl/mips, this fixes the check to be linux specific which means it can detect the endianness for musl correctly (From OE-Core rev: c9559685ebcfb0303fc072c99b3d518427fc5a82) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/virglrenderer/virglrenderer/0001-gallium-Expand-libc-check-to-be-platform-OS-check.patch36
-rw-r--r--meta/recipes-graphics/virglrenderer/virglrenderer_0.7.0.bb1
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-graphics/virglrenderer/virglrenderer/0001-gallium-Expand-libc-check-to-be-platform-OS-check.patch b/meta/recipes-graphics/virglrenderer/virglrenderer/0001-gallium-Expand-libc-check-to-be-platform-OS-check.patch
new file mode 100644
index 0000000000..a0ac3aefdd
--- /dev/null
+++ b/meta/recipes-graphics/virglrenderer/virglrenderer/0001-gallium-Expand-libc-check-to-be-platform-OS-check.patch
@@ -0,0 +1,36 @@
1From 3d30df8d8ccb919733b5339b2a82474305b83998 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 6 Aug 2019 01:19:48 +0000
4Subject: [PATCH] gallium: Expand libc check to be platform OS check
5
6endianness on musl based systems can also be detected in same way as
7glibc, therefore check for __linux__ define instead of __GLIBC__
8
9Fixes build on musl/mips
10
11| ../../../../git/src/gallium/include/pipe/p_config.h:171:2: error: #error Unknown Endianness
12| #error Unknown Endianness
13| ^~~~~
14
15Upstream-Status: Pending
16Signed-off-by: Khem Raj <raj.khem@gmail.com>
17---
18 src/gallium/include/pipe/p_config.h | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h
22index d603681..71cdf49 100644
23--- a/src/gallium/include/pipe/p_config.h
24+++ b/src/gallium/include/pipe/p_config.h
25@@ -130,7 +130,7 @@
26 * Endian detection.
27 */
28
29-#ifdef __GLIBC__
30+#ifdef __linux__
31 #include <endian.h>
32
33 #if __BYTE_ORDER == __LITTLE_ENDIAN
34--
352.17.1
36
diff --git a/meta/recipes-graphics/virglrenderer/virglrenderer_0.7.0.bb b/meta/recipes-graphics/virglrenderer/virglrenderer_0.7.0.bb
index 225a0b8b0c..818d5b6307 100644
--- a/meta/recipes-graphics/virglrenderer/virglrenderer_0.7.0.bb
+++ b/meta/recipes-graphics/virglrenderer/virglrenderer_0.7.0.bb
@@ -9,6 +9,7 @@ SRCREV = "402c228861c9893f64cffbbcb4cb23044b8c721c"
9SRC_URI = "git://anongit.freedesktop.org/virglrenderer \ 9SRC_URI = "git://anongit.freedesktop.org/virglrenderer \
10 file://0001-vtest-add-missing-includes.patch \ 10 file://0001-vtest-add-missing-includes.patch \
11 file://0001-Makefile.am-explicitly-link-with-libdrm.patch \ 11 file://0001-Makefile.am-explicitly-link-with-libdrm.patch \
12 file://0001-gallium-Expand-libc-check-to-be-platform-OS-check.patch \
12 " 13 "
13 14
14S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"