From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark McLoughlin Subject: [PATCH 3/4] kvm: configure: pass --with-patched-kernel to kernel/configure Date: Fri, 27 Mar 2009 10:29:37 +0000 Message-ID: <1238149778-4666-4-git-send-email-markmc@redhat.com> References: <1238149778-4666-1-git-send-email-markmc@redhat.com> <1238149778-4666-2-git-send-email-markmc@redhat.com> <1238149778-4666-3-git-send-email-markmc@redhat.com> Cc: kvm@vger.kernel.org, Mark McLoughlin To: avi@redhat.com Return-path: Received: from mail09.svc.cra.dublin.eircom.net ([159.134.118.25]:40855 "HELO mail09.svc.cra.dublin.eircom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752810AbZC0K3n (ORCPT ); Fri, 27 Mar 2009 06:29:43 -0400 In-Reply-To: <1238149778-4666-3-git-send-email-markmc@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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 --- 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