summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch')
-rw-r--r--meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch21
1 files changed, 11 insertions, 10 deletions
diff --git a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
index 9fba5da4b2..1869e11059 100644
--- a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
+++ b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
@@ -1,8 +1,7 @@
1From ea966884e39aae9571c038fab55f3c1663d17850 Mon Sep 17 00:00:00 2001 1From b6d9bc97cb0e8c540a45dba5440b036fb940ff95 Mon Sep 17 00:00:00 2001
2From: Fabio Berton <fabio.berton@ossystems.com.br> 2From: Alistair Francis <alistair.francis@wdc.com>
3Date: Wed, 12 Jun 2019 13:40:20 -0300 3Date: Mon, 11 Nov 2019 09:38:15 -0800
4Subject: [PATCH] meson.build: check for all linux host_os combinations 4Subject: [PATCH] meson.build: check for all linux host_os combinations
5Organization: O.S. Systems Software LTDA.
6 5
7Make sure that we are also looking for our host_os combinations like 6Make sure that we are also looking for our host_os combinations like
8linux-musl etc. when assuming support for DRM/KMS. 7linux-musl etc. when assuming support for DRM/KMS.
@@ -14,29 +13,31 @@ Upstream-Status: Pending
14Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> 13Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
15Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> 14Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
16Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> 15Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
16Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
17
17--- 18---
18 meson.build | 4 ++-- 19 meson.build | 4 ++--
19 1 file changed, 2 insertions(+), 2 deletions(-) 20 1 file changed, 2 insertions(+), 2 deletions(-)
20 21
21diff --git a/meson.build b/meson.build 22diff --git a/meson.build b/meson.build
22index 567a81afd6f..b33b430aed4 100644 23index d584152..a1f098c 100644
23--- a/meson.build 24--- a/meson.build
24+++ b/meson.build 25+++ b/meson.build
25@@ -107,7 +107,7 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2 26@@ -117,7 +117,7 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2
26 # Only build shared_glapi if at least one OpenGL API is enabled 27 # Only build shared_glapi if at least one OpenGL API is enabled
27 with_shared_glapi = get_option('shared-glapi') and with_any_opengl 28 with_shared_glapi = get_option('shared-glapi') and with_any_opengl
28 29
29-system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux'].contains(host_machine.system()) 30-system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux', 'sunos'].contains(host_machine.system())
30+system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'dragonfly'].contains(host_machine.system()) or host_machine.system().startswith('linux') 31+system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'dragonfly'].contains(host_machine.system()) or host_machine.system().startswith('linux')
31 32
32 dri_drivers = get_option('dri-drivers') 33 dri_drivers = get_option('dri-drivers')
33 if dri_drivers.contains('auto') 34 if dri_drivers.contains('auto')
34@@ -845,7 +845,7 @@ if cc.compiles('int foo(void) __attribute__((__noreturn__));', 35@@ -856,7 +856,7 @@ if cc.compiles('__uint128_t foo(void) { return 0; }',
35 endif 36 endif
36 37
37 # TODO: this is very incomplete 38 # TODO: this is very incomplete
38-if ['linux', 'cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system()) 39-if ['linux', 'cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system())
39+if ['cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system()) or host_machine.system().startswith('linux') 40+if ['cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system()) or host_machine.system().startswith('linux')
40 pre_args += '-D_GNU_SOURCE' 41 pre_args += '-D_GNU_SOURCE'
41 endif 42 elif host_machine.system() == 'sunos'
42 43 pre_args += '-D__EXTENSIONS__'