When the shell encounters a glob it can't expand (like
arch/powerpc/include/asm/vmx*.h), it leaves the raw pattern behind. rsync then
looks for a file named "arch/powerpc/include/asm/vmx*.h" (without trying to do
its own globbing) and fails.
Fix by using make's $(wildcard) function for the expansion, which does not
leave unexpanded patterns behind.
Signed-off-by: Hollis Blanchard <[EMAIL PROTECTED]>
diff --git a/kernel/Makefile b/kernel/Makefile
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -57,22 +57,22 @@ header-link:
T = $(subst -sync,,$@)-tmp
-headers-old = $(LINUX)/./include/asm-$(ARCH_DIR)/kvm*.h
-headers-new = $(LINUX)/arch/$(ARCH_DIR)/include/asm/./kvm*.h \
+headers-old = $(wildcard $(LINUX)/./include/asm-$(ARCH_DIR)/kvm*.h)
+headers-new = $(wildcard $(LINUX)/arch/$(ARCH_DIR)/include/asm/./kvm*.h \
$(LINUX)/arch/$(ARCH_DIR)/include/asm/./vmx*.h \
$(LINUX)/arch/$(ARCH_DIR)/include/asm/./svm*.h \
- $(LINUX)/arch/$(ARCH_DIR)/include/asm/./virtext*.h
+ $(LINUX)/arch/$(ARCH_DIR)/include/asm/./virtext*.h)
header-sync:
rm -rf $T
rsync -R \
"$(LINUX)"/./include/linux/kvm*.h \
- $(if $(wildcard $(headers-old)), $(headers-old)) \
- $T/
- $(if $(wildcard $(headers-new)), \
+ $(headers-old) \
+ $T/
+ $(if $(headers-new), \
rsync -R \
$(headers-new) \
- $T/include/asm-$(ARCH_DIR)/)
+ $T/include/asm-$(ARCH_DIR)/)
for i in $$(find $T -name '*.h'); do \
$(call unifdef,$$i); done
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html