1# SPDX-License-Identifier: GPL-2.0 2# Makefile for xmon 3 4# Avoid clang warnings around longjmp/setjmp declarations 5subdir-ccflags-y := -ffreestanding 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 -mno-sched-epilog,,$(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS))) 15 16ifdef CONFIG_CC_IS_CLANG 17# clang stores addresses on the stack causing the frame size to blow 18# out. See https://github.com/ClangBuiltLinux/linux/issues/252 19KBUILD_CFLAGS += -Wframe-larger-than=4096 20endif 21 22ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC) 23 24obj-y += xmon.o nonstdio.o spr_access.o 25 26ifdef CONFIG_XMON_DISASSEMBLY 27obj-y += ppc-dis.o ppc-opc.o 28obj-$(CONFIG_SPU_BASE) += spu-dis.o spu-opc.o 29endif 30