blob: 5d065b2222d370e13dd161a6b66e96590b747739 [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 Viro9b25fcb2011-08-18 20:04:09 +010013 stub_$(BITS).o stub_segv.o syscalls_$(BITS).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
20obj-$(CONFIG_BINFMT_ELF) += elfcore.o
21
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
24subarch-$(CONFIG_HIGHMEM) += ../mm/highmem_32.o
Al Viro6582b7f2011-08-18 20:03:19 +010025
26else
27
28obj-y += vdso/
29
Al Viro5c48b102011-08-18 20:06:39 +010030subarch-y = ../lib/csum-partial_64.o ../lib/memcpy_64.o ../lib/thunk_64.o \
31 ../lib/rwsem.o
Al Viro6582b7f2011-08-18 20:03:19 +010032
33endif
34
Al Viro5c48b102011-08-18 20:06:39 +010035subarch-$(CONFIG_MODULES) += ../kernel/module.o
Al Viro6582b7f2011-08-18 20:03:19 +010036
37USER_OBJS := bugs_$(BITS).o ptrace_user.o fault.o
38
39extra-y += user-offsets.s
H. Peter Anvin45db1c62011-12-05 16:08:49 -080040$(obj)/user-offsets.s: c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) \
41 -Iarch/x86/include/generated
Al Viro6582b7f2011-08-18 20:03:19 +010042
43UNPROFILE_OBJS := stub_segv.o
44CFLAGS_stub_segv.o := $(CFLAGS_NO_HARDENING)
45
46include arch/um/scripts/Makefile.rules