xref: /openbmc/linux/arch/powerpc/xmon/Makefile (revision ebd09753)
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
8UBSAN_SANITIZE := n
9
10# Disable ftrace for the entire directory
11ORIG_CFLAGS := $(KBUILD_CFLAGS)
12KBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS))
13
14ifdef CONFIG_CC_IS_CLANG
15# clang stores addresses on the stack causing the frame size to blow
16# out. See https://github.com/ClangBuiltLinux/linux/issues/252
17KBUILD_CFLAGS += -Wframe-larger-than=4096
18endif
19
20ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC)
21
22obj-y			+= xmon.o nonstdio.o spr_access.o
23
24ifdef CONFIG_XMON_DISASSEMBLY
25obj-y			+= ppc-dis.o ppc-opc.o
26obj-$(CONFIG_SPU_BASE)	+= spu-dis.o spu-opc.o
27endif
28