]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/x86/um/Makefile
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / um / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
6582b7f7
AV
2#
3# Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
4#
5
6ifeq ($(CONFIG_X86_32),y)
7 BITS := 32
8else
9 BITS := 64
10endif
11
9a93848f 12obj-y = bugs_$(BITS).o delay.o fault.o ldt.o \
f67aa2ff 13 ptrace_$(BITS).o ptrace_user.o setjmp_$(BITS).o signal.o \
5b3eb3ad 14 stub_$(BITS).o stub_segv.o \
5c48b108
AV
15 sys_call_table_$(BITS).o sysrq_$(BITS).o tls_$(BITS).o \
16 mem_$(BITS).o subarch.o os-$(OS)/
6582b7f7
AV
17
18ifeq ($(CONFIG_X86_32),y)
19
79170fda 20obj-y += checksum_32.o syscalls_32.o
42d91f61 21obj-$(CONFIG_ELF_CORE) += elfcore.o
6582b7f7 22
5c48b108
AV
23subarch-y = ../lib/string_32.o ../lib/atomic64_32.o ../lib/atomic64_cx8_32.o
24subarch-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += ../lib/rwsem.o
6582b7f7
AV
25
26else
27
5b3eb3ad 28obj-y += syscalls_64.o vdso/
6582b7f7 29
e6b93f4e 30subarch-y = ../lib/csum-partial_64.o ../lib/memcpy_64.o ../entry/thunk_64.o \
5c48b108 31 ../lib/rwsem.o
6582b7f7
AV
32
33endif
34
5c48b108 35subarch-$(CONFIG_MODULES) += ../kernel/module.o
6582b7f7
AV
36
37USER_OBJS := bugs_$(BITS).o ptrace_user.o fault.o
38
39extra-y += user-offsets.s
45db1c61
PA
40$(obj)/user-offsets.s: c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) \
41 -Iarch/x86/include/generated
6582b7f7
AV
42
43UNPROFILE_OBJS := stub_segv.o
44CFLAGS_stub_segv.o := $(CFLAGS_NO_HARDENING)
45
46include arch/um/scripts/Makefile.rules