18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci# Makefile for xmon 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ciGCOV_PROFILE := n 58c2ecf20Sopenharmony_ciKCOV_INSTRUMENT := n 68c2ecf20Sopenharmony_ciUBSAN_SANITIZE := n 78c2ecf20Sopenharmony_ciKASAN_SANITIZE := n 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci# Disable ftrace for the entire directory 108c2ecf20Sopenharmony_ciccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciifdef CONFIG_CC_IS_CLANG 138c2ecf20Sopenharmony_ci# clang stores addresses on the stack causing the frame size to blow 148c2ecf20Sopenharmony_ci# out. See https://github.com/ClangBuiltLinux/linux/issues/252 158c2ecf20Sopenharmony_ciKBUILD_CFLAGS += -Wframe-larger-than=4096 168c2ecf20Sopenharmony_ciendif 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC) 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciobj-y += xmon.o nonstdio.o spr_access.o xmon_bpts.o 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciifdef CONFIG_XMON_DISASSEMBLY 238c2ecf20Sopenharmony_ciobj-y += ppc-dis.o ppc-opc.o 248c2ecf20Sopenharmony_ciobj-$(CONFIG_SPU_BASE) += spu-dis.o spu-opc.o 258c2ecf20Sopenharmony_ciendif 26