xref: /openbmc/linux/arch/powerpc/kexec/Makefile (revision 793b08e2)
1793b08e2SChristophe Leroy# SPDX-License-Identifier: GPL-2.0
2793b08e2SChristophe Leroy#
3793b08e2SChristophe Leroy# Makefile for the linux kernel.
4793b08e2SChristophe Leroy#
5793b08e2SChristophe Leroy
6793b08e2SChristophe Leroy# Disable clang warning for using setjmp without setjmp.h header
7793b08e2SChristophe LeroyCFLAGS_crash.o		+= $(call cc-disable-warning, builtin-requires-header)
8793b08e2SChristophe Leroy
9793b08e2SChristophe Leroyobj-y				+= core.o crash.o core_$(BITS).o
10793b08e2SChristophe Leroy
11793b08e2SChristophe Leroyobj-$(CONFIG_PPC32)		+= relocate_32.o
12793b08e2SChristophe Leroy
13793b08e2SChristophe Leroyobj-$(CONFIG_KEXEC_FILE)	+= file_load.o elf_$(BITS).o
14793b08e2SChristophe Leroy
15793b08e2SChristophe Leroyifdef CONFIG_HAVE_IMA_KEXEC
16793b08e2SChristophe Leroyifdef CONFIG_IMA
17793b08e2SChristophe Leroyobj-y				+= ima.o
18793b08e2SChristophe Leroyendif
19793b08e2SChristophe Leroyendif
20793b08e2SChristophe Leroy
21793b08e2SChristophe Leroy
22793b08e2SChristophe Leroy# Disable GCOV, KCOV & sanitizers in odd or sensitive code
23793b08e2SChristophe LeroyGCOV_PROFILE_core_$(BITS).o := n
24793b08e2SChristophe LeroyKCOV_INSTRUMENT_core_$(BITS).o := n
25793b08e2SChristophe LeroyUBSAN_SANITIZE_core_$(BITS).o := n
26