1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 2f78541dcSPaul Mackerras# Makefile for xmon 3f78541dcSPaul Mackerras 4ba55bd74SMichael Ellermansubdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror 5ba55bd74SMichael Ellerman 6a15098c9SMichael EllermanGCOV_PROFILE := n 7bf76f73cSDaniel AxtensUBSAN_SANITIZE := n 8a15098c9SMichael Ellerman 9e12d94f8SNaveen N. Rao# Disable ftrace for the entire directory 10e12d94f8SNaveen N. RaoORIG_CFLAGS := $(KBUILD_CFLAGS) 11e12d94f8SNaveen N. RaoKBUILD_CFLAGS = $(subst -mno-sched-epilog,,$(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS))) 12e12d94f8SNaveen N. Rao 131fbe9cf2SAnton Blanchardccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC) 14e0426047SMichael Ellerman 1531cdd0c3SPaul Mackerrasobj-y += xmon.o nonstdio.o spr_access.o 16e0426047SMichael Ellerman 17e0426047SMichael Ellermanifdef CONFIG_XMON_DISASSEMBLY 18e0426047SMichael Ellermanobj-y += ppc-dis.o ppc-opc.o 19e055595dSArnd Bergmannobj-$(CONFIG_SPU_BASE) += spu-dis.o spu-opc.o 20e0426047SMichael Ellermanendif 21