• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the x86 low level entry code
4#
5
6KASAN_SANITIZE := n
7UBSAN_SANITIZE := n
8KCOV_INSTRUMENT := n
9
10CFLAGS_REMOVE_common.o		= $(CC_FLAGS_FTRACE)
11CFLAGS_REMOVE_syscall_64.o	= $(CC_FLAGS_FTRACE)
12CFLAGS_REMOVE_syscall_32.o	= $(CC_FLAGS_FTRACE)
13CFLAGS_REMOVE_syscall_x32.o	= $(CC_FLAGS_FTRACE)
14
15CFLAGS_common.o			+= -fno-stack-protector
16CFLAGS_syscall_64.o		+= -fno-stack-protector
17CFLAGS_syscall_32.o		+= -fno-stack-protector
18CFLAGS_syscall_x32.o		+= -fno-stack-protector
19
20CFLAGS_syscall_64.o		+= $(call cc-option,-Wno-override-init,)
21CFLAGS_syscall_32.o		+= $(call cc-option,-Wno-override-init,)
22CFLAGS_syscall_x32.o		+= $(call cc-option,-Wno-override-init,)
23
24obj-y				:= entry.o entry_$(BITS).o syscall_$(BITS).o
25obj-y				+= common.o
26
27obj-y				+= vdso/
28obj-y				+= vsyscall/
29
30obj-$(CONFIG_PREEMPTION)	+= thunk_$(BITS).o
31obj-$(CONFIG_IA32_EMULATION)	+= entry_64_compat.o syscall_32.o
32obj-$(CONFIG_X86_X32_ABI)	+= syscall_x32.o
33
34