kvm: external module: fix to work with 2.6.28 kernel
commit1b91eee7ff3475f24d7bada8f4a0486e4e4b0b34
authorMark McLoughlin <markmc@redhat.com>
Mon, 24 Nov 2008 13:21:21 +0000 (24 13:21 +0000)
committerAvi Kivity <avi@redhat.com>
Wed, 26 Nov 2008 16:27:18 +0000 (26 18:27 +0200)
tree0fd612e0f233843f058e5b4f6de5c3f0c016ac8f
parente5f9dcd1417f4069b8d9891a76c758e4838a6e21
kvm: external module: fix to work with 2.6.28 kernel

If you run header-sync against a kernel which has asm/kvm.h but not
e.g. asm/vmx.h then $(wildcard $(headers-new)) returns a string with
expanded kvm.h path and the vmx.h glob removed. We then pass the
original globs to rsync causing that to fail when vmx.h can't be
found:

  rsync: link_stat ".../asm/vmx*.h" failed: No such file or directory (2)

Fix by passing the expanded paths returned by the wildcard function to
rsync.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
kernel/Makefile