• Al Viro's avatar
    [PATCH] uml: start cross-build support : mk_user_constants · 8d0b9dc9
    Al Viro authored
    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: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
    Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
    Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    8d0b9dc9
user-offsets.c 1.98 KB