xref: /openbmc/linux/arch/powerpc/xmon/Makefile (revision 15d5761a)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2f78541dcSPaul Mackerras# Makefile for xmon
3f78541dcSPaul Mackerras
4a15098c9SMichael EllermanGCOV_PROFILE := n
5fb0b0a73SAndrew DonnellanKCOV_INSTRUMENT := n
6bf76f73cSDaniel AxtensUBSAN_SANITIZE := n
7f072015cSChristophe LeroyKASAN_SANITIZE := n
8a15098c9SMichael Ellerman
9e12d94f8SNaveen N. Rao# Disable ftrace for the entire directory
10*15d5761aSMasahiro Yamadaccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE)
11e12d94f8SNaveen N. Rao
129c87156cSJoel Stanleyifdef CONFIG_CC_IS_CLANG
139c87156cSJoel Stanley# clang stores addresses on the stack causing the frame size to blow
149c87156cSJoel Stanley# out. See https://github.com/ClangBuiltLinux/linux/issues/252
159c87156cSJoel StanleyKBUILD_CFLAGS += -Wframe-larger-than=4096
169c87156cSJoel Stanleyendif
179c87156cSJoel Stanley
181fbe9cf2SAnton Blanchardccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC)
19e0426047SMichael Ellerman
204eff2b4fSJordan Nietheobj-y			+= xmon.o nonstdio.o spr_access.o xmon_bpts.o
21e0426047SMichael Ellerman
22e0426047SMichael Ellermanifdef CONFIG_XMON_DISASSEMBLY
23e0426047SMichael Ellermanobj-y			+= ppc-dis.o ppc-opc.o
24e055595dSArnd Bergmannobj-$(CONFIG_SPU_BASE)	+= spu-dis.o spu-opc.o
25e0426047SMichael Ellermanendif
26