Makefile 776 字节
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
P
Paul Mackerras 已提交
2 3
# Makefile for xmon

4 5 6
# Disable clang warning for using setjmp without setjmp.h header
subdir-ccflags-y := $(call cc-disable-warning, builtin-requires-header)

M
Michael Ellerman 已提交
7
GCOV_PROFILE := n
D
Daniel Axtens 已提交
8
UBSAN_SANITIZE := n
M
Michael Ellerman 已提交
9

10 11
# Disable ftrace for the entire directory
ORIG_CFLAGS := $(KBUILD_CFLAGS)
12
KBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS))
13

14 15 16 17 18 19
ifdef CONFIG_CC_IS_CLANG
# clang stores addresses on the stack causing the frame size to blow
# out. See https://github.com/ClangBuiltLinux/linux/issues/252
KBUILD_CFLAGS += -Wframe-larger-than=4096
endif

20
ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC)
21

22
obj-y			+= xmon.o nonstdio.o spr_access.o
23 24 25

ifdef CONFIG_XMON_DISASSEMBLY
obj-y			+= ppc-dis.o ppc-opc.o
26
obj-$(CONFIG_SPU_BASE)	+= spu-dis.o spu-opc.o
27
endif