blob: 378f6108a41469e5bf145a7536daf60923f9f19e [file] [log] [blame]
Christophe Leroy793b08e2019-10-29 12:13:58 +00001# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the linux kernel.
4#
5
Nathan Chancellorc9029ef2019-11-18 21:57:11 -07006# Avoid clang warnings around longjmp/setjmp declarations
7CFLAGS_crash.o += -ffreestanding
Christophe Leroy793b08e2019-10-29 12:13:58 +00008
9obj-y += core.o crash.o core_$(BITS).o
10
11obj-$(CONFIG_PPC32) += relocate_32.o
12
13obj-$(CONFIG_KEXEC_FILE) += file_load.o elf_$(BITS).o
14
15ifdef CONFIG_HAVE_IMA_KEXEC
16ifdef CONFIG_IMA
17obj-y += ima.o
18endif
19endif
20
21
22# Disable GCOV, KCOV & sanitizers in odd or sensitive code
23GCOV_PROFILE_core_$(BITS).o := n
24KCOV_INSTRUMENT_core_$(BITS).o := n
25UBSAN_SANITIZE_core_$(BITS).o := n