diff mbox

[libdrm,v2,18/23] meson: use simple option handling for vc4

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

Commit Message

Eric Engestrom April 4, 2018, 3:38 p.m. UTC
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
---
 meson.build | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
diff mbox

Patch

diff --git a/meson.build b/meson.build
index a469bdbff1743f796bdf..f3747736f5bed7c01143 100644
--- a/meson.build
+++ b/meson.build
@@ -79,6 +79,7 @@  foreach d : [
   ['exynos', false, false],
   ['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())],
   ['tegra', true, false],
+  ['vc4', false, ['arm', 'aarch64'].contains(host_machine.cpu_family())],
 ]
   driver = d[0]
   require_atomics = d[1]
@@ -110,14 +111,6 @@  endif
 
 with_exynos = get_option('exynos') == 'true'
 
-with_vc4 = false
-_vc4 = get_option('vc4')
-if _vc4 == 'auto'
-  with_vc4 = ['arm', 'aarch64'].contains(host_machine.cpu_family())
-else
-  with_vc4 = _vc4 == 'true'
-endif
-
 # XXX: Aparently only freebsd and dragonfly bsd actually need this (and
 # gnu/kfreebsd), not openbsd and netbsd
 with_libkms = false