We need to know this so that we can avoid doing things that
are specific to building kvm.ko - e.g. when we are only
doing header-sync.

Signed-off-by: Mark McLoughlin <[email protected]>
---
 configure        |    1 +
 kernel/configure |    4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 49c4419..249c743 100755
--- a/configure
+++ b/configure
@@ -121,6 +121,7 @@ arch=${arch%%-*}
     ./configure \
        --kerneldir="$kerneldir" \
        --arch="$arch" \
+       $([ -z ${want_module} ] && echo "--with-patched-kernel") \
        ${cross_prefix:+"--cross-prefix=$cross_prefix"} \
        ${kvm_trace:+"--with-kvm-trace"}
 )
diff --git a/kernel/configure b/kernel/configure
index 79fb093..3fd0c94 100755
--- a/kernel/configure
+++ b/kernel/configure
@@ -6,6 +6,7 @@ cc=gcc
 ld=ld
 objcopy=objcopy
 ar=ar
+want_module=1
 kvm_trace=
 cross_prefix=
 arch=`uname -m`
@@ -44,6 +45,9 @@ while [[ "$1" = -* ]]; do
            kerneldir="$arg"
             no_uname=1
            ;;
+       --with-patched-kernel)
+           want_module=
+           ;;
        --with-kvm-trace)
            kvm_trace=y
            ;;
-- 
1.6.0.6

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to