From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1KOX0x-0004XN-MO for user-mode-linux-devel@lists.sourceforge.net; Thu, 31 Jul 2008 05:12:15 -0700 Received: from nf-out-0910.google.com ([64.233.182.189]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1KOX0v-0006LB-LW for user-mode-linux-devel@lists.sourceforge.net; Thu, 31 Jul 2008 05:12:15 -0700 Received: by nf-out-0910.google.com with SMTP id g16so174692nfd.2 for ; Thu, 31 Jul 2008 05:12:12 -0700 (PDT) Date: Thu, 31 Jul 2008 13:10:28 +0100 From: WANG Cong Message-ID: <20080731121028.GA23636@hack.voiplan.pt> MIME-Version: 1.0 Content-Disposition: inline Subject: [uml-devel] [Patch] UML build: fix missing posix_types.h List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: LKML Cc: Andrew Morton , jdike@addtoit.com, sam@ravnborg.org, user-mode-linux-devel@lists.sourceforge.net, linux-kbuild@vger.kernel.org When building UML with 'O=foo' specified, I got: CC kernel/bounds.s In file included from /home/wangcong/Projects/linux-2.6/include/linux/types.h:11, from /home/wangcong/Projects/linux-2.6/include/linux/page-flags.h:8, from /home/wangcong/Projects/linux-2.6/kernel/bounds.c:9: /home/wangcong/Projects/linux-2.6/include/linux/posix_types.h:47:29: error: asm/posix_types.h: No such file or directory In file included from /home/wangcong/Projects/linux-2.6/include/linux/page-flags.h:8, from /home/wangcong/Projects/linux-2.6/kernel/bounds.c:9: /home/wangcong/Projects/linux-2.6/include/linux/types.h:12:23: error: asm/types.h: No such file or directory In file included from /home/wangcong/Projects/linux-2.6/include/linux/page-flags.h:8, Below patch fixed it, note, it is only tested for x86 and um. Signed-off-by: WANG Cong Cc: sam@ravnborg.org Cc: jdike@addtoit.com --- diff --git a/Makefile b/Makefile index aa527a4..39130d1 100644 --- a/Makefile +++ b/Makefile @@ -930,7 +930,8 @@ ifneq ($(KBUILD_SRC),) /bin/false; \ fi; $(Q)if [ ! -d include2 ]; then mkdir -p include2; fi; - $(Q)if [ -e $(srctree)/include/asm-$(SRCARCH)/system.h ]; then \ + $(Q)if [ -e $(srctree)/include/asm-$(SRCARCH)/system.h -o \ + -e $(objtree)/include/asm-$(SRCARCH)/system.h ] ; then \ ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \ fi endif ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel