Skip to contentSkip to conversation

UML build: fix missing posix_types.h

PATCH In review WANG Cong 2 participants 2 messages Jul 31, 2008

Subsystems (2)
lore
Share & tools
lore

WANG Cong

author
#0 lore raw

PATCH 1/1 UML build: fix missing posix_types.h

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.

---

Makefile +2 -1
index aa527a4..39130d1 100644
@@ -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
#1 lore raw
Quoted 33 lines · WANG Cong

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.

---

Makefile +0 -0
index aa527a4..39130d1 100644

Makefile ifneq ($(KBUILD_SRC),) · line 937

Quoted 9 lines
Makefile +2 -1
@@ -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

I have a similar patch locally. I just check for errno.h so I do not have to do the extra check in objtree.
Will push tonight.

Sam

-------------------------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel