2019-10-29 19:13:58 +07:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
#
|
|
|
|
# Makefile for the linux kernel.
|
|
|
|
#
|
|
|
|
|
2019-11-19 11:57:11 +07:00
|
|
|
# Avoid clang warnings around longjmp/setjmp declarations
|
|
|
|
CFLAGS_crash.o += -ffreestanding
|
2019-10-29 19:13:58 +07:00
|
|
|
|
|
|
|
obj-y += core.o crash.o core_$(BITS).o
|
|
|
|
|
|
|
|
obj-$(CONFIG_PPC32) += relocate_32.o
|
|
|
|
|
|
|
|
obj-$(CONFIG_KEXEC_FILE) += file_load.o elf_$(BITS).o
|
|
|
|
|
|
|
|
ifdef CONFIG_HAVE_IMA_KEXEC
|
|
|
|
ifdef CONFIG_IMA
|
|
|
|
obj-y += ima.o
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
# Disable GCOV, KCOV & sanitizers in odd or sensitive code
|
|
|
|
GCOV_PROFILE_core_$(BITS).o := n
|
|
|
|
KCOV_INSTRUMENT_core_$(BITS).o := n
|
|
|
|
UBSAN_SANITIZE_core_$(BITS).o := n
|