[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 25/40] configure, meson: move CONFIG_IVSHMEM to meson
From: |
Paolo Bonzini |
Subject: |
[PULL 25/40] configure, meson: move CONFIG_IVSHMEM to meson |
Date: |
Tue, 6 Jul 2021 12:01:26 +0200 |
This is a duplicate of CONFIG_EVENTFD, handle it directly in meson.build.
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
configure | 8 --------
docs/devel/kconfig.rst | 2 +-
meson.build | 5 +++--
3 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/configure b/configure
index 341b74dd5e..a524104120 100755
--- a/configure
+++ b/configure
@@ -5037,11 +5037,6 @@ if test "$mingw32" = "yes" ; then
done
fi
-# We can only support ivshmem if we have eventfd
-if [ "$eventfd" = "yes" ]; then
- ivshmem=yes
-fi
-
# Probe for guest agent support/options
if [ "$guest_agent" != "no" ]; then
@@ -5639,9 +5634,6 @@ fi
if test "$have_getrandom" = "yes" ; then
echo "CONFIG_GETRANDOM=y" >> $config_host_mak
fi
-if test "$ivshmem" = "yes" ; then
- echo "CONFIG_IVSHMEM=y" >> $config_host_mak
-fi
if test "$debug_mutex" = "yes" ; then
echo "CONFIG_DEBUG_MUTEX=y" >> $config_host_mak
fi
diff --git a/docs/devel/kconfig.rst b/docs/devel/kconfig.rst
index cb2d7ffac0..a1cdbec751 100644
--- a/docs/devel/kconfig.rst
+++ b/docs/devel/kconfig.rst
@@ -303,5 +303,5 @@ variable::
host_kconfig = \
('CONFIG_TPM' in config_host ? ['CONFIG_TPM=y'] : []) + \
('CONFIG_SPICE' in config_host ? ['CONFIG_SPICE=y'] : []) + \
- ('CONFIG_IVSHMEM' in config_host ? ['CONFIG_IVSHMEM=y'] : []) + \
+ (have_ivshmem ? ['CONFIG_IVSHMEM=y'] : []) + \
...
diff --git a/meson.build b/meson.build
index e288e4c21c..b5dcc3d70e 100644
--- a/meson.build
+++ b/meson.build
@@ -1335,10 +1335,11 @@ if link_language == 'cpp'
}
endif
+have_ivshmem = config_host.has_key('CONFIG_EVENTFD')
host_kconfig = \
('CONFIG_TPM' in config_host ? ['CONFIG_TPM=y'] : []) + \
('CONFIG_SPICE' in config_host ? ['CONFIG_SPICE=y'] : []) + \
- ('CONFIG_IVSHMEM' in config_host ? ['CONFIG_IVSHMEM=y'] : []) + \
+ (have_ivshmem ? ['CONFIG_IVSHMEM=y'] : []) + \
('CONFIG_OPENGL' in config_host ? ['CONFIG_OPENGL=y'] : []) + \
(x11.found() ? ['CONFIG_X11=y'] : []) + \
('CONFIG_VHOST_USER' in config_host ? ['CONFIG_VHOST_USER=y'] : []) + \
@@ -2489,7 +2490,7 @@ if have_tools
install: true)
endif
- if 'CONFIG_IVSHMEM' in config_host
+ if have_ivshmem
subdir('contrib/ivshmem-client')
subdir('contrib/ivshmem-server')
endif
--
2.31.1
- [PULL 08/40] target/i386: Declare constants for XSAVE offsets, (continued)
- [PULL 08/40] target/i386: Declare constants for XSAVE offsets, Paolo Bonzini, 2021/07/06
- [PULL 17/40] configure, meson: convert vte detection to meson, Paolo Bonzini, 2021/07/06
- [PULL 18/40] configure, meson: convert virgl detection to meson, Paolo Bonzini, 2021/07/06
- [PULL 23/40] meson: sort existing compiler tests, Paolo Bonzini, 2021/07/06
- [PULL 01/40] Makefile: Remove /usr/bin/env wrapper from the SHELL variable, Paolo Bonzini, 2021/07/06
- [PULL 16/40] configure: drop vte-2.90 check, Paolo Bonzini, 2021/07/06
- [PULL 19/40] configure, meson: convert libdaxctl detection to meson, Paolo Bonzini, 2021/07/06
- [PULL 14/40] target/i386: Populate x86_ext_save_areas offsets using cpuid where possible, Paolo Bonzini, 2021/07/06
- [PULL 20/40] configure, meson: convert libpmem detection to meson, Paolo Bonzini, 2021/07/06
- [PULL 21/40] configure, meson: convert liburing detection to meson, Paolo Bonzini, 2021/07/06
- [PULL 25/40] configure, meson: move CONFIG_IVSHMEM to meson,
Paolo Bonzini <=
- [PULL 22/40] configure, meson: convert libxml2 detection to meson, Paolo Bonzini, 2021/07/06
- [PULL 26/40] configure: convert HAVE_BROKEN_SIZE_MAX to meson, Paolo Bonzini, 2021/07/06
- [PULL 27/40] configure: convert compiler tests to meson, part 1, Paolo Bonzini, 2021/07/06
- [PULL 15/40] target/i386: Move X86XSaveArea into TCG, Paolo Bonzini, 2021/07/06
- [PULL 34/40] keyval: introduce keyval_merge, Paolo Bonzini, 2021/07/06
- [PULL 24/40] meson: store dependency('threads') in a variable, Paolo Bonzini, 2021/07/06
- [PULL 28/40] configure: convert compiler tests to meson, part 2, Paolo Bonzini, 2021/07/06
- [PULL 29/40] configure: convert compiler tests to meson, part 3, Paolo Bonzini, 2021/07/06
- [PULL 31/40] configure: convert compiler tests to meson, part 5, Paolo Bonzini, 2021/07/06
- [PULL 30/40] configure: convert compiler tests to meson, part 4, Paolo Bonzini, 2021/07/06