[PATCH 3/4] kvm: configure: pass --with-patched-kernel to kernel/configure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <markmc@xxxxxxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux