Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / x86 / um / Makefile
blobc2d3d7c51e9e8f938accd4b695ea0dd8a5bf6957
1 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
6 ifeq ($(CONFIG_X86_32),y)
7 BITS := 32
8 else
9 BITS := 64
10 endif
12 obj-y = bugs_$(BITS).o delay.o fault.o ldt.o \
13 ptrace_$(BITS).o ptrace_user.o setjmp_$(BITS).o signal.o \
14 stub_$(BITS).o stub_segv.o \
15 sys_call_table_$(BITS).o sysrq_$(BITS).o tls_$(BITS).o \
16 mem_$(BITS).o subarch.o os-$(OS)/
18 ifeq ($(CONFIG_X86_32),y)
20 obj-y += checksum_32.o syscalls_32.o
21 obj-$(CONFIG_ELF_CORE) += elfcore.o
23 subarch-y = ../lib/string_32.o ../lib/atomic64_32.o ../lib/atomic64_cx8_32.o
24 subarch-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += ../lib/rwsem.o
26 else
28 obj-y += syscalls_64.o vdso/
30 subarch-y = ../lib/csum-partial_64.o ../lib/memcpy_64.o ../entry/thunk_64.o \
31 ../lib/rwsem.o
33 endif
35 subarch-$(CONFIG_MODULES) += ../kernel/module.o
37 USER_OBJS := bugs_$(BITS).o ptrace_user.o fault.o
39 extra-y += user-offsets.s
40 $(obj)/user-offsets.s: c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) \
41 -Iarch/x86/include/generated
43 UNPROFILE_OBJS := stub_segv.o
44 CFLAGS_stub_segv.o := $(CFLAGS_NO_HARDENING)
46 include arch/um/scripts/Makefile.rules