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