xref: /linux/arch/powerpc/xmon/Makefile (revision aea447141c7e7824b81b49acd1bc785506fba46e)
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
7subdir-ccflags-$(CONFIG_PPC_WERROR) += -Werror
8
9GCOV_PROFILE := n
10UBSAN_SANITIZE := n
11
12# Disable ftrace for the entire directory
13ORIG_CFLAGS := $(KBUILD_CFLAGS)
14KBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS))
15
16ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC)
17
18obj-y			+= xmon.o nonstdio.o spr_access.o
19
20ifdef CONFIG_XMON_DISASSEMBLY
21obj-y			+= ppc-dis.o ppc-opc.o
22obj-$(CONFIG_SPU_BASE)	+= spu-dis.o spu-opc.o
23endif
24