diff mbox

[libdrm,07/23] meson: fix exynos=auto detection (was always false)

Message ID 20180320174659.1510-8-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 | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/meson.build b/meson.build
index 51f2a214e1d9715a053d..76eefaeca20ad80ba1ef 100644
--- a/meson.build
+++ b/meson.build
@@ -130,6 +130,14 @@  if with_omap and not with_atomics
   error('libdrm_omap requires atomics.')
 endif
 
+with_exynos = false
+_exynos = get_option('exynos')
+if _exynos == 'auto'
+  with_exynos = true
+else
+  with_exynos = _exynos == 'true'
+endif
+
 with_freedreno = false
 _freedreno = get_option('freedreno')
 if _freedreno == 'auto'
@@ -159,8 +167,6 @@  if _etnaviv == 'true'
   with_etnaviv = true
 endif
 
-with_exynos = get_option('exynos') == 'true'
-
 with_vc4 = false
 _vc4 = get_option('vc4')
 if _vc4 != 'false'