diff options
author | Al Viro <viro@parcelfarce.linux.theplanet.co.uk> | 2005-05-05 19:15:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-05 19:36:34 -0400 |
commit | 8d0b9dc9be3919e9979eac59fd12e8f82b098325 (patch) | |
tree | 190a2421938f7bb94b5ab830b0513ef435bbcab1 /arch/um/Makefile | |
parent | fcddd72e3e2565f8b838ae71a3e716a67f616160 (diff) |
[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>
Diffstat (limited to 'arch/um/Makefile')
-rw-r--r-- | arch/um/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile index 1d136640d360..e3465dab57fd 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile | |||
@@ -166,6 +166,14 @@ endef | |||
166 | $(ARCH_DIR)/include/uml-config.h : include/linux/autoconf.h | 166 | $(ARCH_DIR)/include/uml-config.h : include/linux/autoconf.h |
167 | $(call filechk,umlconfig) | 167 | $(call filechk,umlconfig) |
168 | 168 | ||
169 | $(ARCH_DIR)/user-offsets.s: $(ARCH_DIR)/sys-$(SUBARCH)/user-offsets.c | ||
170 | $(CC) $(USER_CFLAGS) -S -o $@ $< | ||
171 | |||
172 | $(ARCH_DIR)/user-offsets.h: $(ARCH_DIR)/user-offsets.s | ||
173 | $(call filechk,gen-asm-offsets) | ||
174 | |||
175 | CLEAN_FILES += $(ARCH_DIR)/user-offsets.s $(ARCH_DIR)/user-offsets.h | ||
176 | |||
169 | $(ARCH_DIR)/include/task.h: $(ARCH_DIR)/util/mk_task | 177 | $(ARCH_DIR)/include/task.h: $(ARCH_DIR)/util/mk_task |
170 | $(call filechk,gen_header) | 178 | $(call filechk,gen_header) |
171 | 179 | ||