[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/3] configure: Do not build TCG if not necessary
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 1/3] configure: Do not build TCG if not necessary |
Date: |
Wed, 20 Jan 2021 16:19:14 +0100 |
We don't want to check/build TCG when no system/user emulation
is requested. This is useful in particular when building only:
- tools
- documentation
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
configure | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 9f016b06b54..012c527e3cd 100755
--- a/configure
+++ b/configure
@@ -337,7 +337,7 @@ linux_io_uring="$default_feature"
cap_ng="auto"
attr="auto"
xfs="$default_feature"
-tcg="enabled"
+tcg="auto"
membarrier="$default_feature"
vhost_net="$default_feature"
vhost_crypto="$default_feature"
@@ -2282,6 +2282,15 @@ case " $target_list " in
;;
esac
+if [ "$tcg" = "auto" ]; then
+ # if neither system nor user emulation requested, no need to build TCG
+ if [ "$softmmu" = "no" ] && [ "$linux_user" = "no" ] && [ "$bsd_user" =
"no" ]; then
+ tcg="disabled"
+ else
+ tcg="enabled"
+ fi
+fi
+
feature_not_found() {
feature=$1
remedy=$2
--
2.26.2