From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark McLoughlin Subject: [PATCH] kvm: header-sync: fix to work with 2.6.28 kernel Date: Mon, 24 Nov 2008 13:21:21 +0000 Message-ID: <1227532881.7605.35.camel@blaa> Reply-To: Mark McLoughlin Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: kvm To: Avi Kivity Return-path: Received: from mx2.redhat.com ([66.187.237.31]:46579 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752682AbYKXNWd (ORCPT ); Mon, 24 Nov 2008 08:22:33 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id mAODMXmv021945 for ; Mon, 24 Nov 2008 08:22:33 -0500 Sender: kvm-owner@vger.kernel.org List-ID: 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 --- kernel/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/Makefile b/kernel/Makefile index 33d6a84..eaf1c8e 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -71,7 +71,7 @@ header-sync: $T/ $(if $(wildcard $(headers-new)), \ rsync -R \ - $(headers-new) \ + $(wildcard $(headers-new)) \ $T/include/asm-$(ARCH_DIR)/) for i in $$(find $T -name '*.h'); do \ -- 1.6.0.3