xref: /openbmc/linux/arch/powerpc/xmon/Makefile (revision 1804569d)
1# SPDX-License-Identifier: GPL-2.0
2# Makefile for xmon
3
4# Disable clang warning for using setjmp without setjmp.h header
5subdir-ccflags-y := $(call cc-disable-warning, builtin-requires-header)
6
7GCOV_PROFILE := n
8KCOV_INSTRUMENT := n
9UBSAN_SANITIZE := n
10
11# Disable ftrace for the entire directory
12ORIG_CFLAGS := $(KBUILD_CFLAGS)
13KBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS))
14
15ifdef CONFIG_CC_IS_CLANG
16# clang stores addresses on the stack causing the frame size to blow
17# out. See https://github.com/ClangBuiltLinux/linux/issues/252
18KBUILD_CFLAGS += -Wframe-larger-than=4096
19endif
20
21ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC)
22
23obj-y			+= xmon.o nonstdio.o spr_access.o
24
25ifdef CONFIG_XMON_DISASSEMBLY
26obj-y			+= ppc-dis.o ppc-opc.o
27obj-$(CONFIG_SPU_BASE)	+= spu-dis.o spu-opc.o
28endif
29