From: Nolan Subject: [PATCH] fix build w/ "--with-patched-kernel" on Ubuntu 8.10 Date: Tue, 16 Dec 2008 19:08:01 -0800 Message-ID: <1229483281.22328.343.camel@voxel> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from phong.sigbus.net ([65.49.35.42]:58334 "EHLO phong.sigbus.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754962AbYLQDkV (ORCPT ); Tue, 16 Dec 2008 22:40:21 -0500 Received: from [192.168.0.3] (c-67-188-86-149.hsd1.ca.comcast.net [67.188.86.149]) by phong.sigbus.net (Postfix) with ESMTP id C7CAC95C0AB for ; Tue, 16 Dec 2008 19:08:01 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: And presumably any other distribution that puts only symlinks in /lib/modules//build/... Signed-off-by: Nolan Leake sigbus.net> diff --git a/kernel/Makefile b/kernel/Makefile index 8315e3d..6bf474b 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -65,12 +65,12 @@ headers-new = $(LINUX)/arch/$(ARCH_DIR)/include/asm/./kvm*.h \ header-sync: rm -rf $T - rsync -R \ + rsync -R -L \ "$(LINUX)"/./include/linux/kvm*.h \ $(if $(wildcard $(headers-old)), $(headers-old)) \ $T/ $(if $(wildcard $(headers-new)), \ - rsync -R \ + rsync -R -L \ $(wildcard $(headers-new)) \ $T/include/asm-$(ARCH_DIR)/)