From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Pike Subject: [PATCH] fix include paths when the kernel source and build directory are different Date: Wed, 3 Jun 2009 13:58:40 +0100 Message-ID: <20090603125840.GA16209@dupont.ts-a> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="45Z9DzgjV8m4Oswq" To: kvm@vger.kernel.org Return-path: Received: from mail-fx0-f168.google.com ([209.85.220.168]:61696 "EHLO mail-fx0-f168.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753406AbZFCNGd (ORCPT ); Wed, 3 Jun 2009 09:06:33 -0400 Received: by fxm12 with SMTP id 12so7380191fxm.37 for ; Wed, 03 Jun 2009 06:06:33 -0700 (PDT) Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Use correct architecture includes when kernel source and build directory are different. Signed-off-by: James Pike --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="kvm-kmod-86-build.patch" diff --git a/Makefile b/Makefile index 95e4c81..ad08c45 100644 --- a/Makefile +++ b/Makefile @@ -27,8 +27,9 @@ all:: prerequisite # include header priority 1) $LINUX 2) $KERNELDIR 3) include-compat $(MAKE) -C $(KERNELDIR) M=`pwd` \ LINUXINCLUDE="-I`pwd`/include -Iinclude \ - $(if $(KERNELSOURCEDIR),-Iinclude2 -I$(KERNELSOURCEDIR)/include) \ - -Iarch/${ARCH_DIR}/include -I`pwd`/include-compat \ + $(if $(KERNELSOURCEDIR),\ + -Iinclude2 -I$(KERNELSOURCEDIR)/include -I$(KERNELSOURCEDIR)/arch/${ARCH_DIR}/include, \ + -Iarch/${ARCH_DIR}/include) -I`pwd`/include-compat \ -include include/linux/autoconf.h \ -include `pwd`/$(ARCH_DIR)/external-module-compat.h $(module_defines)" \ "$$@" --45Z9DzgjV8m4Oswq--