Christophe Leroy | 793b08e | 2019-10-29 12:13:58 +0000 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # |
| 3 | # Makefile for the linux kernel. |
| 4 | # |
| 5 | |
Nathan Chancellor | c9029ef | 2019-11-18 21:57:11 -0700 | [diff] [blame] | 6 | # Avoid clang warnings around longjmp/setjmp declarations |
| 7 | CFLAGS_crash.o += -ffreestanding |
Christophe Leroy | 793b08e | 2019-10-29 12:13:58 +0000 | [diff] [blame] | 8 | |
| 9 | obj-y += core.o crash.o core_$(BITS).o |
| 10 | |
| 11 | obj-$(CONFIG_PPC32) += relocate_32.o |
| 12 | |
| 13 | obj-$(CONFIG_KEXEC_FILE) += file_load.o elf_$(BITS).o |
| 14 | |
| 15 | ifdef CONFIG_HAVE_IMA_KEXEC |
| 16 | ifdef CONFIG_IMA |
| 17 | obj-y += ima.o |
| 18 | endif |
| 19 | endif |
| 20 | |
| 21 | |
| 22 | # Disable GCOV, KCOV & sanitizers in odd or sensitive code |
| 23 | GCOV_PROFILE_core_$(BITS).o := n |
| 24 | KCOV_INSTRUMENT_core_$(BITS).o := n |
| 25 | UBSAN_SANITIZE_core_$(BITS).o := n |