• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# SPDX-License-Identifier: GPL-2.0
2# Makefile for xmon
3
4GCOV_PROFILE := n
5KCOV_INSTRUMENT := n
6UBSAN_SANITIZE := n
7KASAN_SANITIZE := n
8
9# Disable ftrace for the entire directory
10ORIG_CFLAGS := $(KBUILD_CFLAGS)
11KBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS))
12
13ifdef CONFIG_CC_IS_CLANG
14# clang stores addresses on the stack causing the frame size to blow
15# out. See https://github.com/ClangBuiltLinux/linux/issues/252
16KBUILD_CFLAGS += -Wframe-larger-than=4096
17endif
18
19ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC)
20
21obj-y			+= xmon.o nonstdio.o spr_access.o
22
23ifdef CONFIG_XMON_DISASSEMBLY
24obj-y			+= ppc-dis.o ppc-opc.o
25obj-$(CONFIG_SPU_BASE)	+= spu-dis.o spu-opc.o
26endif
27