2011-08-19 03:03:19 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
|
|
|
|
#
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_X86_32),y)
|
|
|
|
BITS := 32
|
|
|
|
else
|
|
|
|
BITS := 64
|
|
|
|
endif
|
|
|
|
|
2016-01-12 00:04:34 +08:00
|
|
|
obj-y = bug.o bugs_$(BITS).o delay.o fault.o ldt.o \
|
2011-08-19 03:10:39 +08:00
|
|
|
ptrace_$(BITS).o ptrace_user.o setjmp_$(BITS).o signal.o \
|
2012-12-26 08:14:55 +08:00
|
|
|
stub_$(BITS).o stub_segv.o \
|
2011-08-19 03:06:39 +08:00
|
|
|
sys_call_table_$(BITS).o sysrq_$(BITS).o tls_$(BITS).o \
|
|
|
|
mem_$(BITS).o subarch.o os-$(OS)/
|
2011-08-19 03:03:19 +08:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_X86_32),y)
|
|
|
|
|
|
|
|
obj-y += checksum_32.o
|
2015-12-24 20:12:11 +08:00
|
|
|
obj-$(CONFIG_ELF_CORE) += elfcore.o
|
2011-08-19 03:03:19 +08:00
|
|
|
|
2011-08-19 03:06:39 +08:00
|
|
|
subarch-y = ../lib/string_32.o ../lib/atomic64_32.o ../lib/atomic64_cx8_32.o
|
|
|
|
subarch-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += ../lib/rwsem.o
|
2011-08-19 03:03:19 +08:00
|
|
|
|
|
|
|
else
|
|
|
|
|
2012-12-26 08:14:55 +08:00
|
|
|
obj-y += syscalls_64.o vdso/
|
2011-08-19 03:03:19 +08:00
|
|
|
|
2015-06-04 00:10:43 +08:00
|
|
|
subarch-y = ../lib/csum-partial_64.o ../lib/memcpy_64.o ../entry/thunk_64.o \
|
2011-08-19 03:06:39 +08:00
|
|
|
../lib/rwsem.o
|
2011-08-19 03:03:19 +08:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2011-08-19 03:06:39 +08:00
|
|
|
subarch-$(CONFIG_MODULES) += ../kernel/module.o
|
2011-08-19 03:03:19 +08:00
|
|
|
|
|
|
|
USER_OBJS := bugs_$(BITS).o ptrace_user.o fault.o
|
|
|
|
|
|
|
|
extra-y += user-offsets.s
|
2011-12-06 08:08:49 +08:00
|
|
|
$(obj)/user-offsets.s: c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) \
|
|
|
|
-Iarch/x86/include/generated
|
2011-08-19 03:03:19 +08:00
|
|
|
|
|
|
|
UNPROFILE_OBJS := stub_segv.o
|
|
|
|
CFLAGS_stub_segv.o := $(CFLAGS_NO_HARDENING)
|
|
|
|
|
|
|
|
include arch/um/scripts/Makefile.rules
|