2005-04-17 06:20:36 +08:00
|
|
|
# Copyright 2003 - 2004 Pathscale, Inc
|
|
|
|
# Released under the GPL
|
|
|
|
|
2005-07-14 15:33:43 +08:00
|
|
|
libs-y += arch/um/sys-x86_64/
|
2005-04-17 06:20:36 +08:00
|
|
|
START := 0x60000000
|
|
|
|
|
2005-07-14 15:33:43 +08:00
|
|
|
#We #undef __x86_64__ for kernelspace, not for userspace where
|
|
|
|
#it's needed for headers to work!
|
2005-09-04 06:57:43 +08:00
|
|
|
CFLAGS += -U__$(SUBARCH)__ -fno-builtin
|
2005-07-14 15:33:43 +08:00
|
|
|
USER_CFLAGS += -fno-builtin
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
2005-05-06 07:15:25 +08:00
|
|
|
$(SYS_UTIL_DIR)/mk_sc: scripts_basic $(ARCH_DIR)/user-offsets.h FORCE
|
2005-04-17 06:20:36 +08:00
|
|
|
$(Q)$(MAKE) $(build)=$(SYS_UTIL_DIR) $@
|
|
|
|
|
2005-05-06 07:15:26 +08:00
|
|
|
$(SYS_UTIL_DIR)/mk_thread: scripts_basic $(GEN_HEADERS) $(ARCH_DIR)/kernel-offsets.h FORCE
|
2005-04-17 06:20:36 +08:00
|
|
|
$(Q)$(MAKE) $(build)=$(SYS_UTIL_DIR) $@
|
|
|
|
|
|
|
|
CLEAN_FILES += $(SYS_HEADERS)
|