[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/4] configure: Add a --enable-debug-kvm option to configure
From: |
AlexChen |
Subject: |
[PATCH 1/4] configure: Add a --enable-debug-kvm option to configure |
Date: |
Wed, 28 Oct 2020 15:11:25 +0800 |
User-agent: |
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 |
This patch allows CONFIG_DEBUG_KVM to be defined when passing
an option to the configure script.
Signed-off-by: AlexChen <alex.chen@huawei.com>
---
configure | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/configure b/configure
index e6754c1e87..2cdef5be4c 100755
--- a/configure
+++ b/configure
@@ -338,6 +338,7 @@ pvrdma=""
gprof="no"
debug_tcg="no"
debug="no"
+debug_kvm="no"
sanitizers="no"
tsan="no"
fortify_source=""
@@ -1022,11 +1023,16 @@ for opt do
;;
--disable-debug-tcg) debug_tcg="no"
;;
+ --enable-debug-kvm) debug_kvm="yes"
+ ;;
+ --disable-debug-kvm) debug_kvm="no"
+ ;;
--enable-debug)
# Enable debugging options that aren't excessively noisy
debug_tcg="yes"
debug_mutex="yes"
debug="yes"
+ debug_kvm="yes"
strip_opt="no"
fortify_source="no"
;;
@@ -1735,6 +1741,7 @@ disabled with --disable-FEATURE, default is enabled if
available:
module-upgrades try to load modules from alternate paths for upgrades
debug-tcg TCG debugging (default is disabled)
debug-info debugging information
+ debug-kvm KVM debugging support (default is disabled)
sparse sparse checker
safe-stack SafeStack Stack Smash Protection. Depends on
clang/llvm >= 3.7 and requires coroutine backend ucontext.
@@ -5929,6 +5936,9 @@ fi
if test "$debug_tcg" = "yes" ; then
echo "CONFIG_DEBUG_TCG=y" >> $config_host_mak
fi
+if test "$debug_kvm" = "yes" ; then
+ echo "CONFIG_DEBUG_KVM=y" >> $config_host_mak
+fi
if test "$strip_opt" = "yes" ; then
echo "STRIP=${strip}" >> $config_host_mak
fi
--
2.19.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 1/4] configure: Add a --enable-debug-kvm option to configure,
AlexChen <=