Al Viro | 6582b7f | 2011-08-18 20:03:19 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) |
| 3 | # |
| 4 | |
| 5 | ifeq ($(CONFIG_X86_32),y) |
| 6 | BITS := 32 |
| 7 | else |
| 8 | BITS := 64 |
| 9 | endif |
| 10 | |
Richard Weinberger | d0af6cb | 2011-08-18 21:55:11 +0200 | [diff] [blame] | 11 | obj-y = bug.o bugs_$(BITS).o delay.o fault.o ksyms.o ldt.o \ |
Al Viro | f67aa2f | 2011-08-18 20:10:39 +0100 | [diff] [blame] | 12 | ptrace_$(BITS).o ptrace_user.o setjmp_$(BITS).o signal.o \ |
Al Viro | 5b3eb3a | 2012-12-25 19:14:55 -0500 | [diff] [blame] | 13 | stub_$(BITS).o stub_segv.o \ |
Al Viro | 5c48b10 | 2011-08-18 20:06:39 +0100 | [diff] [blame] | 14 | sys_call_table_$(BITS).o sysrq_$(BITS).o tls_$(BITS).o \ |
| 15 | mem_$(BITS).o subarch.o os-$(OS)/ |
Al Viro | 6582b7f | 2011-08-18 20:03:19 +0100 | [diff] [blame] | 16 | |
| 17 | ifeq ($(CONFIG_X86_32),y) |
| 18 | |
| 19 | obj-y += checksum_32.o |
Mickaël Salaün | 42d91f6 | 2015-12-24 13:12:11 +0100 | [diff] [blame] | 20 | obj-$(CONFIG_ELF_CORE) += elfcore.o |
Al Viro | 6582b7f | 2011-08-18 20:03:19 +0100 | [diff] [blame] | 21 | |
Al Viro | 5c48b10 | 2011-08-18 20:06:39 +0100 | [diff] [blame] | 22 | subarch-y = ../lib/string_32.o ../lib/atomic64_32.o ../lib/atomic64_cx8_32.o |
| 23 | subarch-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += ../lib/rwsem.o |
Al Viro | 6582b7f | 2011-08-18 20:03:19 +0100 | [diff] [blame] | 24 | |
| 25 | else |
| 26 | |
Al Viro | 5b3eb3a | 2012-12-25 19:14:55 -0500 | [diff] [blame] | 27 | obj-y += syscalls_64.o vdso/ |
Al Viro | 6582b7f | 2011-08-18 20:03:19 +0100 | [diff] [blame] | 28 | |
Ingo Molnar | e6b93f4 | 2015-06-03 18:10:43 +0200 | [diff] [blame] | 29 | subarch-y = ../lib/csum-partial_64.o ../lib/memcpy_64.o ../entry/thunk_64.o \ |
Al Viro | 5c48b10 | 2011-08-18 20:06:39 +0100 | [diff] [blame] | 30 | ../lib/rwsem.o |
Al Viro | 6582b7f | 2011-08-18 20:03:19 +0100 | [diff] [blame] | 31 | |
| 32 | endif |
| 33 | |
Al Viro | 5c48b10 | 2011-08-18 20:06:39 +0100 | [diff] [blame] | 34 | subarch-$(CONFIG_MODULES) += ../kernel/module.o |
Al Viro | 6582b7f | 2011-08-18 20:03:19 +0100 | [diff] [blame] | 35 | |
| 36 | USER_OBJS := bugs_$(BITS).o ptrace_user.o fault.o |
| 37 | |
| 38 | extra-y += user-offsets.s |
H. Peter Anvin | 45db1c6 | 2011-12-05 16:08:49 -0800 | [diff] [blame] | 39 | $(obj)/user-offsets.s: c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) \ |
| 40 | -Iarch/x86/include/generated |
Al Viro | 6582b7f | 2011-08-18 20:03:19 +0100 | [diff] [blame] | 41 | |
| 42 | UNPROFILE_OBJS := stub_segv.o |
| 43 | CFLAGS_stub_segv.o := $(CFLAGS_NO_HARDENING) |
| 44 | |
| 45 | include arch/um/scripts/Makefile.rules |