From cede4e7ac3c481f872369a1e4873597103b46897 Mon Sep 17 00:00:00 2001 From: Mark Collins Date: Tue, 7 Nov 2023 15:49:54 +0000 Subject: [PATCH] meson: Only include virtio when DRM available The unconditional inclusion of the `virtio` subdirectory introduced by !24733 causes a full dependency on DRM, it breaks any systems that have `system_has_kms_drm = false`, including Turnip with just the KGSL KMD. A temporary solution to this is gating the inclusion when `system_has_kms_drm` isn't set but this should be replaced with more specific gating in the future. Signed-off-by: Mark Collins Part-of: --- src/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/meson.build b/src/meson.build index bc200fe1435..1293538b8f6 100644 --- a/src/meson.build +++ b/src/meson.build @@ -91,7 +91,9 @@ endif if with_gallium_etnaviv subdir('etnaviv') endif -subdir('virtio') +if system_has_kms_drm + subdir('virtio') +endif if with_gallium_freedreno or with_freedreno_vk or with_tools.contains('freedreno') subdir('freedreno') endif