mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 17:01:14 +00:00
![Al Viro](/assets/img/avatar_default.png)
mk_thread converted 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>
32 lines
833 B
Text
32 lines
833 B
Text
# Copyright 2003 - 2004 Pathscale, Inc
|
|
# Released under the GPL
|
|
|
|
SUBARCH_LIBS := arch/um/sys-x86_64/
|
|
START := 0x60000000
|
|
|
|
CFLAGS += -U__$(SUBARCH)__ -fno-builtin
|
|
ARCH_USER_CFLAGS := -D__x86_64__
|
|
|
|
ELF_ARCH := i386:x86-64
|
|
ELF_FORMAT := elf64-x86-64
|
|
|
|
SYS_UTIL_DIR := $(ARCH_DIR)/sys-x86_64/util
|
|
SYS_DIR := $(ARCH_DIR)/include/sysdep-x86_64
|
|
|
|
SYS_HEADERS = $(SYS_DIR)/sc.h $(SYS_DIR)/thread.h
|
|
|
|
prepare: $(SYS_HEADERS)
|
|
|
|
$(SYS_DIR)/sc.h: $(SYS_UTIL_DIR)/mk_sc
|
|
$(call filechk,gen_header)
|
|
|
|
$(SYS_DIR)/thread.h: $(SYS_UTIL_DIR)/mk_thread
|
|
$(call filechk,gen_header)
|
|
|
|
$(SYS_UTIL_DIR)/mk_sc: scripts_basic $(ARCH_DIR)/user-offsets.h FORCE
|
|
$(Q)$(MAKE) $(build)=$(SYS_UTIL_DIR) $@
|
|
|
|
$(SYS_UTIL_DIR)/mk_thread: scripts_basic $(GEN_HEADERS) $(ARCH_DIR)/kernel-offsets.h FORCE
|
|
$(Q)$(MAKE) $(build)=$(SYS_UTIL_DIR) $@
|
|
|
|
CLEAN_FILES += $(SYS_HEADERS)
|