]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] uml: start cross-build support : mk_user_constants
authorAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Thu, 5 May 2005 23:15:23 +0000 (16:15 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 5 May 2005 23:36:34 +0000 (16:36 -0700)
commit33e95948512d50f98e91bda7ebf42cfd6e7f6f4b
tree190a2421938f7bb94b5ab830b0513ef435bbcab1
parent3c0c2e280140794f3e05becf5bc46c81d3e96cf9
[PATCH] uml: start cross-build support : mk_user_constants

Beginning of cross-build fixes.  Instead of expecting that mk_user_constants
(compiled and executed on the build box) will see the sizeof, etc.  for target
box, we do what every architecture already does for asm-offsets.  Namely, have
user-offsets.c compiled *for* *target* into user-offsets.s and sed it into the
header with relevant constants.  We don't need to reinvent any wheels - all
tools are already there.

This patch deals with mk_user_constants.  It doesn't assume any relationship
between target and build environment anymore - we pick all defines we need
from user-offsets.h.  Later patches will deal with the rest of mk_...  helpers
in the same way.

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/Makefile
arch/um/os-Linux/util/Makefile
arch/um/os-Linux/util/mk_user_constants.c
arch/um/sys-i386/user-offsets.c [new file with mode: 0644]
arch/um/sys-x86_64/user-offsets.c [new file with mode: 0644]