kvm: external module: fix to work with 2.6.28 kernel
commit59b031e94a9c5cab182a65c06066ab9f4248c7a8
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)
treea9cc05aa9dc309fe3823245c764db6d7bbe1db75
parent50945485bfcc5137f3ce010f5f5f7663eae8f511
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>
kvm/kernel/Makefile