kvm: external module: Make KVM compile on split source/object kernel configurations
commita5003307a36a1a074613c49c63a61d8e5b933282
authorAlexander Graf <agraf@suse.de>
Tue, 7 Oct 2008 09:47:24 +0000 (7 11:47 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 7 Oct 2008 14:42:46 +0000 (7 16:42 +0200)
tree35cee16f20a87a5afe5e9e1d286d148c112fb2bb
parentd6bc76d704f77d0117ce453ddee68e736addc596
kvm: external module: Make KVM compile on split source/object kernel configurations

KVM as is assumes that the kernel obj dir and the kernel source dir are
at the same location. This is true for most self-built vanilla kernels,
but some distributions split these up (e.g. SUSE).
To keep compatible and have users have a good experience on building KVM
on any distribution, this patch attempts to rebuild the logic from the
kernel Makefile as closely as possible. With it I successfully built KVM
on a current SUSE system.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
kvm/configure
kvm/kernel/Makefile