diff mbox

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

Message ID 20180320174659.1510-19-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 5c4b223f5a36255f492f..16f205f01a61ab2241f1 100644
--- a/meson.build
+++ b/meson.build
@@ -75,6 +75,7 @@  foreach d : [
   ['amdgpu', true, true],
   ['nouveau', true, true],
   ['vmwgfx', false, true],
+  ['omap', true, true],
 ]
   driver = d[0]
   require_atomics = d[1]
@@ -95,17 +96,6 @@  foreach d : [
   endif
 endforeach
 
-with_omap = false
-_omap = get_option('omap')
-if _omap == 'auto'
-  with_omap = with_atomics
-else
-  with_omap = _omap == 'true'
-endif
-if with_omap and not with_atomics
-  error('libdrm_omap requires atomics.')
-endif
-
 with_exynos = false
 _exynos = get_option('exynos')
 if _exynos == 'auto'