diff mbox

[libdrm,v2,17/23] meson: use simple option handling for tegra

Message ID 20180404153818.26179-17-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 | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
diff mbox

Patch

diff --git a/meson.build b/meson.build
index 72e5836e78bd239584b3..a469bdbff1743f796bdf 100644
--- a/meson.build
+++ b/meson.build
@@ -78,6 +78,7 @@  foreach d : [
   ['omap', true, false],
   ['exynos', false, false],
   ['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())],
+  ['tegra', true, false],
 ]
   driver = d[0]
   require_atomics = d[1]
@@ -98,15 +99,6 @@  foreach d : [
   endif
 endforeach
 
-with_tegra = false
-_tegra = get_option('tegra')
-if _tegra == 'true'
-  if not with_atomics
-    error('libdrm_tegra requires atomics.')
-  endif
-  with_tegra = true
-endif
-
 with_etnaviv = false
 _etnaviv = get_option('etnaviv')
 if _etnaviv == 'true'