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 | |
| 11 | obj-y = bug.o bugs_$(BITS).o delay_$(BITS).o fault.o ksyms.o ldt.o \ |
| 12 | ptrace_$(BITS).o ptrace_user.o setjmp_$(BITS).o signal_$(BITS).o \ |
Al Viro | 9b25fcb | 2011-08-18 20:04:09 +0100 | [diff] [blame^] | 13 | stub_$(BITS).o stub_segv.o syscalls_$(BITS).o \ |
Al Viro | 6582b7f | 2011-08-18 20:03:19 +0100 | [diff] [blame] | 14 | sys_call_table_$(BITS).o sysrq_$(BITS).o tls_$(BITS).o mem_$(BITS).o |
| 15 | |
| 16 | ifeq ($(CONFIG_X86_32),y) |
| 17 | |
| 18 | obj-y += checksum_32.o |
| 19 | obj-$(CONFIG_BINFMT_ELF) += elfcore.o |
| 20 | |
| 21 | subarch-obj-y = lib/string_32.o lib/atomic64_32.o lib/atomic64_cx8_32.o |
| 22 | subarch-obj-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += lib/rwsem.o |
| 23 | subarch-obj-$(CONFIG_HIGHMEM) += mm/highmem_32.o |
| 24 | subarch-obj-$(CONFIG_MODULES) += kernel/module.o |
| 25 | |
| 26 | else |
| 27 | |
| 28 | obj-y += vdso/ |
| 29 | |
| 30 | subarch-obj-y = lib/csum-partial_64.o lib/memcpy_64.o lib/thunk_64.o \ |
| 31 | lib/rwsem.o |
| 32 | |
| 33 | endif |
| 34 | |
| 35 | subarch-obj-$(CONFIG_MODULES) += kernel/module.o |
| 36 | |
| 37 | USER_OBJS := bugs_$(BITS).o ptrace_user.o fault.o |
| 38 | |
| 39 | extra-y += user-offsets.s |
| 40 | $(obj)/user-offsets.s: c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) |
| 41 | |
| 42 | UNPROFILE_OBJS := stub_segv.o |
| 43 | CFLAGS_stub_segv.o := $(CFLAGS_NO_HARDENING) |
| 44 | |
| 45 | include arch/um/scripts/Makefile.rules |