2011-08-18 23:03:19 +04:00
#
# Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
#
i f e q ( $( CONFIG_X 86_ 32) , y )
BITS := 32
e l s e
BITS := 64
e n d i f
2011-08-18 23:55:11 +04:00
obj-y = bug.o bugs_$( BITS) .o delay.o fault.o ksyms.o ldt.o \
2011-08-18 23:10:39 +04:00
ptrace_$( BITS) .o ptrace_user.o setjmp_$( BITS) .o signal.o \
2012-12-26 04:14:55 +04:00
stub_$( BITS) .o stub_segv.o \
2011-08-18 23:06:39 +04:00
sys_call_table_$( BITS) .o sysrq_$( BITS) .o tls_$( BITS) .o \
mem_$( BITS) .o subarch.o os-$( OS) /
2011-08-18 23:03:19 +04:00
i f e q ( $( CONFIG_X 86_ 32) , y )
obj-y += checksum_32.o
2015-12-24 15:12:11 +03:00
obj-$(CONFIG_ELF_CORE) += elfcore.o
2011-08-18 23:03:19 +04:00
2011-08-18 23:06:39 +04:00
subarch-y = ../lib/string_32.o ../lib/atomic64_32.o ../lib/atomic64_cx8_32.o
subarch-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += ../lib/rwsem.o
2011-08-18 23:03:19 +04:00
e l s e
2012-12-26 04:14:55 +04:00
obj-y += syscalls_64.o vdso/
2011-08-18 23:03:19 +04:00
2015-06-03 19:10:43 +03:00
subarch-y = ../lib/csum-partial_64.o ../lib/memcpy_64.o ../entry/thunk_64.o \
2011-08-18 23:06:39 +04:00
../lib/rwsem.o
2011-08-18 23:03:19 +04:00
e n d i f
2011-08-18 23:06:39 +04:00
subarch-$(CONFIG_MODULES) += ../kernel/module.o
2011-08-18 23:03:19 +04:00
USER_OBJS := bugs_$( BITS) .o ptrace_user.o fault.o
extra-y += user-offsets.s
2011-12-06 04:08:49 +04:00
$(obj)/user-offsets.s : c_flags = -Wp , -MD , $( depfile ) $( USER_CFLAGS ) \
-Iarch/x86/include/generated
2011-08-18 23:03:19 +04:00
UNPROFILE_OBJS := stub_segv.o
CFLAGS_stub_segv.o := $( CFLAGS_NO_HARDENING)
i n c l u d e a r c h / u m / s c r i p t s / M a k e f i l e . r u l e s