diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2008-09-22 14:52:08 -0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-09-24 16:46:31 +0300 |
commit | 6ded9fac7706221bac107ee36fc26940f8978c0c (patch) | |
tree | bf68c4917d6ea3e3989b78166d5f3b7954a1dfe5 /configure | |
parent | 8c169ae16bc112bd227c4f6b408cf3d8f4364e7f (diff) |
kvm: external module: add --with-kvm-trace arg to configure
/configure --with-kvm-trace will set a CONFIG_KVM_TRACE option on a
kernel/config.kbuild file. This file can be included from the Kbuild
files to get kvm-specific CONFIG_* definitions.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -8,6 +8,7 @@ objcopy=objcopy want_module=1 qemu_cflags= qemu_ldflags= +kvm_trace= qemu_opts=() cross_prefix= arch=`uname -m` @@ -22,6 +23,7 @@ usage() { --cross-prefix=PREFIX prefix for cross compile --prefix=PREFIX where to install things ($prefix) --with-patched-kernel don't use external module + --with-kvm-trace Enable kvm_trace --kerneldir=DIR kernel build directory ($kerneldir) --qemu-cflags=CFLAGS CFLAGS to add to qemu configuration --qemu-ldflags=LDFLAGS LDFLAGS to add to qemu configuration @@ -56,6 +58,9 @@ while [[ "$1" = -* ]]; do --with-patched-kernel) want_module= ;; + --with-kvm-trace) + kvm_trace=y + ;; --qemu-cflags) qemu_cflags="$arg" ;; @@ -131,3 +136,9 @@ CC=$cross_prefix$cc LD=$cross_prefix$ld OBJCOPY=$cross_prefix$objcopy EOF + +if [ -n "$want_module" ];then +cat <<EOF > kernel/config.kbuild +CONFIG_KVM_TRACE=$kvm_trace +EOF +fi |