From 21220f250dc6c85e3398935baa5dc19ab8316b10 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Fri, 27 Mar 2009 10:29:37 +0000 Subject: [PATCH] kvm: configure: pass --with-patched-kernel to kernel/configure 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 Signed-off-by: Avi Kivity --- kvm/configure | 1 + kvm/kernel/configure | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/kvm/configure b/kvm/configure index 49c4419b3b..249c743f66 100755 --- a/kvm/configure +++ b/kvm/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/kvm/kernel/configure b/kvm/kernel/configure index 79fb093dc5..3fd0c949e5 100755 --- a/kvm/kernel/configure +++ b/kvm/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 ;; -- 2.11.4.GIT