[PATCH libdrm v2 17/23] meson: use simple option handling for tegra
Eric Engestrom
eric.engestrom at imgtec.com
Wed Apr 4 15:38:12 UTC 2018
Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
meson.build | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
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'
--
Cheers,
Eric
More information about the dri-devel
mailing list