xref: /linux/arch/powerpc/xmon/Makefile (revision fb0b0a73b223fc113e961b1d921322844e9c30d9)
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
8*fb0b0a73SAndrew DonnellanKCOV_INSTRUMENT := n
9bf76f73cSDaniel AxtensUBSAN_SANITIZE := n
10a15098c9SMichael Ellerman
11e12d94f8SNaveen N. Rao# Disable ftrace for the entire directory
12e12d94f8SNaveen N. RaoORIG_CFLAGS := $(KBUILD_CFLAGS)
132a056f58SNicholas PigginKBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS))
14e12d94f8SNaveen N. Rao
159c87156cSJoel Stanleyifdef CONFIG_CC_IS_CLANG
169c87156cSJoel Stanley# clang stores addresses on the stack causing the frame size to blow
179c87156cSJoel Stanley# out. See https://github.com/ClangBuiltLinux/linux/issues/252
189c87156cSJoel StanleyKBUILD_CFLAGS += -Wframe-larger-than=4096
199c87156cSJoel Stanleyendif
209c87156cSJoel Stanley
211fbe9cf2SAnton Blanchardccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC)
22e0426047SMichael Ellerman
2331cdd0c3SPaul Mackerrasobj-y			+= xmon.o nonstdio.o spr_access.o
24e0426047SMichael Ellerman
25e0426047SMichael Ellermanifdef CONFIG_XMON_DISASSEMBLY
26e0426047SMichael Ellermanobj-y			+= ppc-dis.o ppc-opc.o
27e055595dSArnd Bergmannobj-$(CONFIG_SPU_BASE)	+= spu-dis.o spu-opc.o
28e0426047SMichael Ellermanendif
29