1 # SPDX-License-Identifier: GPL-2.0 2 # 3 # Copyright (C) 2002 - 2007 Jeff Dike (jdike@{ 4 # 5 6 ifeq ($(CONFIG_X86_32),y) 7 BITS := 32 8 else 9 BITS := 64 10 endif 11 12 obj-y = bugs_$(BITS).o delay.o fault.o \ 13 ptrace_$(BITS).o ptrace_user.o setjmp_ 14 stub_segv.o \ 15 sys_call_table_$(BITS).o sysrq_$(BITS) 16 mem_$(BITS).o subarch.o os-Linux/ 17 18 ifeq ($(CONFIG_X86_32),y) 19 20 obj-y += syscalls_32.o 21 obj-$(CONFIG_ELF_CORE) += elfcore.o 22 23 subarch-y = ../lib/string_32.o ../lib/atomic64 24 subarch-y += ../lib/cmpxchg8b_emu.o ../lib/ato 25 subarch-y += ../lib/checksum_32.o 26 subarch-y += ../kernel/sys_ia32.o 27 28 else 29 30 obj-y += syscalls_64.o vdso/ 31 32 subarch-y = ../lib/csum-partial_64.o ../lib/me 33 ../lib/memmove_64.o ../lib/memset_64.o 34 35 endif 36 37 subarch-$(CONFIG_MODULES) += ../kernel/module. 38 39 USER_OBJS := bugs_$(BITS).o ptrace_user.o faul 40 41 $(obj)/user-offsets.s: c_flags = -Wp,-MD,$(dep 42 -Iarch/x86/include/generated 43 targets += user-offsets.s 44 45 include/generated/user_constants.h: $(obj)/use 46 $(call filechk,offsets,__USER_CONSTANT 47 48 UNPROFILE_OBJS := stub_segv.o 49 CFLAGS_stub_segv.o := $(CFLAGS_NO_HARDENING) 50 51 include $(srctree)/arch/um/scripts/Makefile.ru
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.