xref: /linux/arch/powerpc/kexec/Makefile (revision d198b34f3855eee2571dda03eea75a09c7c31480)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the linux kernel.
4#
5
6# Avoid clang warnings around longjmp/setjmp declarations
7CFLAGS_crash.o += -ffreestanding
8
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
26