blob: 3ee2bb6b440bd3296c4f616c0311aefe07c2d5ce [file] [log] [blame]
Al Viro6582b7f2011-08-18 20:03:19 +01001#
2# Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3#
4
5ifeq ($(CONFIG_X86_32),y)
6 BITS := 32
7else
8 BITS := 64
9endif
10
Richard Weinbergerd0af6cb2011-08-18 21:55:11 +020011obj-y = bug.o bugs_$(BITS).o delay.o fault.o ksyms.o ldt.o \
Al Virof67aa2f2011-08-18 20:10:39 +010012 ptrace_$(BITS).o ptrace_user.o setjmp_$(BITS).o signal.o \
Al Viro5b3eb3a2012-12-25 19:14:55 -050013 stub_$(BITS).o stub_segv.o \
Al Viro5c48b102011-08-18 20:06:39 +010014 sys_call_table_$(BITS).o sysrq_$(BITS).o tls_$(BITS).o \
15 mem_$(BITS).o subarch.o os-$(OS)/
Al Viro6582b7f2011-08-18 20:03:19 +010016
17ifeq ($(CONFIG_X86_32),y)
18
19obj-y += checksum_32.o
Mickaël Salaün42d91f62015-12-24 13:12:11 +010020obj-$(CONFIG_ELF_CORE) += elfcore.o
Al Viro6582b7f2011-08-18 20:03:19 +010021
Al Viro5c48b102011-08-18 20:06:39 +010022subarch-y = ../lib/string_32.o ../lib/atomic64_32.o ../lib/atomic64_cx8_32.o
23subarch-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += ../lib/rwsem.o
Al Viro6582b7f2011-08-18 20:03:19 +010024
25else
26
Al Viro5b3eb3a2012-12-25 19:14:55 -050027obj-y += syscalls_64.o vdso/
Al Viro6582b7f2011-08-18 20:03:19 +010028
Ingo Molnare6b93f42015-06-03 18:10:43 +020029subarch-y = ../lib/csum-partial_64.o ../lib/memcpy_64.o ../entry/thunk_64.o \
Al Viro5c48b102011-08-18 20:06:39 +010030 ../lib/rwsem.o
Al Viro6582b7f2011-08-18 20:03:19 +010031
32endif
33
Al Viro5c48b102011-08-18 20:06:39 +010034subarch-$(CONFIG_MODULES) += ../kernel/module.o
Al Viro6582b7f2011-08-18 20:03:19 +010035
36USER_OBJS := bugs_$(BITS).o ptrace_user.o fault.o
37
38extra-y += user-offsets.s
H. Peter Anvin45db1c62011-12-05 16:08:49 -080039$(obj)/user-offsets.s: c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) \
40 -Iarch/x86/include/generated
Al Viro6582b7f2011-08-18 20:03:19 +010041
42UNPROFILE_OBJS := stub_segv.o
43CFLAGS_stub_segv.o := $(CFLAGS_NO_HARDENING)
44
45include arch/um/scripts/Makefile.rules