diff mbox

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

Message ID 20180320174659.1510-23-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 | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
diff mbox

Patch

diff --git a/meson.build b/meson.build
index 5410b03015747e3eb7cf..e3df4cd8e8dc475ba373 100644
--- a/meson.build
+++ b/meson.build
@@ -79,6 +79,7 @@  foreach d : [
   ['exynos', false, true],
   ['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())],
   ['tegra', true, true],
+  ['vc4', false, ['arm', 'aarch64'].contains(host_machine.cpu_family())],
 ]
   driver = d[0]
   require_atomics = d[1]
@@ -99,14 +100,6 @@  foreach d : [
   endif
 endforeach
 
-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
-
 with_etnaviv = false
 _etnaviv = get_option('etnaviv')
 if _etnaviv == 'auto'