[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tools/meson.build: Error on enabling virtiofsd and have_system i
From: |
Mahmoud Mandour |
Subject: |
[PATCH] tools/meson.build: Error on enabling virtiofsd and have_system is false |
Date: |
Wed, 28 Apr 2021 15:35:07 +0200 |
Previously, on configuring with --enable-virtiofsd and specifying
a target list that does not contain a full-system emulation target,
a spurious error message is emitted. This patch introduces a
meaningful error message for such case.
Signed-off-by: Mahmoud Mandour <ma.mandourr@gmail.com>
---
tools/meson.build | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/meson.build b/tools/meson.build
index 3e5a0abfa2..f6a4ced2f4 100644
--- a/tools/meson.build
+++ b/tools/meson.build
@@ -5,7 +5,9 @@ have_virtiofsd = (targetos == 'linux' and
'CONFIG_VHOST_USER' in config_host)
if get_option('virtiofsd').enabled()
- if not have_virtiofsd
+ if not have_system
+ error('virtiofsd requires full-system emulation target(s)')
+ elif not have_virtiofsd
if targetos != 'linux'
error('virtiofsd requires Linux')
elif not seccomp.found() or not libcap_ng.found()
--
2.25.1
- [PATCH] tools/meson.build: Error on enabling virtiofsd and have_system is false,
Mahmoud Mandour <=