1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 2f78541dcSPaul Mackerras# Makefile for xmon 3f78541dcSPaul Mackerras 4aea44714SJoel Stanley# Disable clang warning for using setjmp without setjmp.h header 5aea44714SJoel Stanleysubdir-ccflags-y := $(call cc-disable-warning, builtin-requires-header) 6aea44714SJoel Stanley 7a15098c9SMichael EllermanGCOV_PROFILE := n 8fb0b0a73SAndrew DonnellanKCOV_INSTRUMENT := n 9bf76f73cSDaniel AxtensUBSAN_SANITIZE := n 10*f072015cSChristophe LeroyKASAN_SANITIZE := n 11a15098c9SMichael Ellerman 12e12d94f8SNaveen N. Rao# Disable ftrace for the entire directory 13e12d94f8SNaveen N. RaoORIG_CFLAGS := $(KBUILD_CFLAGS) 142a056f58SNicholas PigginKBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS)) 15e12d94f8SNaveen N. Rao 169c87156cSJoel Stanleyifdef CONFIG_CC_IS_CLANG 179c87156cSJoel Stanley# clang stores addresses on the stack causing the frame size to blow 189c87156cSJoel Stanley# out. See https://github.com/ClangBuiltLinux/linux/issues/252 199c87156cSJoel StanleyKBUILD_CFLAGS += -Wframe-larger-than=4096 209c87156cSJoel Stanleyendif 219c87156cSJoel Stanley 221fbe9cf2SAnton Blanchardccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC) 23e0426047SMichael Ellerman 2431cdd0c3SPaul Mackerrasobj-y += xmon.o nonstdio.o spr_access.o 25e0426047SMichael Ellerman 26e0426047SMichael Ellermanifdef CONFIG_XMON_DISASSEMBLY 27e0426047SMichael Ellermanobj-y += ppc-dis.o ppc-opc.o 28e055595dSArnd Bergmannobj-$(CONFIG_SPU_BASE) += spu-dis.o spu-opc.o 29e0426047SMichael Ellermanendif 30