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 82fb857bcSRohan McLureKCSAN_SANITIZE := n 9a15098c9SMichael Ellerman 10e12d94f8SNaveen N. Rao# Disable ftrace for the entire directory 1115d5761aSMasahiro Yamadaccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 12e12d94f8SNaveen N. Rao 131fbe9cf2SAnton Blanchardccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC) 14e0426047SMichael Ellerman 15*90bae4d9SNick Desaulniers# Clang stores addresses on the stack causing the frame size to blow 16*90bae4d9SNick Desaulniers# out. See https://github.com/ClangBuiltLinux/linux/issues/252 17*90bae4d9SNick Desaulniersccflags-$(CONFIG_CC_IS_CLANG) += -Wframe-larger-than=4096 18*90bae4d9SNick Desaulniers 194eff2b4fSJordan Nietheobj-y += xmon.o nonstdio.o spr_access.o xmon_bpts.o 20e0426047SMichael Ellerman 21e0426047SMichael Ellermanifdef CONFIG_XMON_DISASSEMBLY 22e0426047SMichael Ellermanobj-y += ppc-dis.o ppc-opc.o 23e055595dSArnd Bergmannobj-$(CONFIG_SPU_BASE) += spu-dis.o spu-opc.o 24e0426047SMichael Ellermanendif 25