diff mbox

[libdrm,23/23] meson: use simple option handling for etnaviv

Message ID 20180320174659.1510-24-eric.engestrom@imgtec.com (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Engestrom March 20, 2018, 5:46 p.m. UTC
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
---
 meson.build | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
diff mbox

Patch

diff --git a/meson.build b/meson.build
index e3df4cd8e8dc475ba373..1dc9a1dd0d310d369f1a 100644
--- a/meson.build
+++ b/meson.build
@@ -80,6 +80,7 @@  foreach d : [
   ['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())],
   ['tegra', true, true],
   ['vc4', false, ['arm', 'aarch64'].contains(host_machine.cpu_family())],
+  ['etnaviv', true, true],
 ]
   driver = d[0]
   require_atomics = d[1]
@@ -100,17 +101,6 @@  foreach d : [
   endif
 endforeach
 
-with_etnaviv = false
-_etnaviv = get_option('etnaviv')
-if _etnaviv == 'auto'
-  with_etnaviv = with_atomics
-else
-  with_etnaviv = _etnaviv == 'true'
-endif
-if with_etnaviv and not with_atomics
-  error('libdrm_etnaviv requires atomics.')
-endif
-
 # XXX: Aparently only freebsd and dragonfly bsd actually need this (and
 # gnu/kfreebsd), not openbsd and netbsd
 with_libkms = false