| 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # Makefile for xmon |
| 3 | |
| 4 | GCOV_PROFILE := n |
| 5 | KCOV_INSTRUMENT := n |
| 6 | UBSAN_SANITIZE := n |
| 7 | KASAN_SANITIZE := n |
| 8 | KCSAN_SANITIZE := n |
| 9 | |
| 10 | # Disable ftrace for the entire directory |
| 11 | ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) |
| 12 | |
| 13 | # Clang stores addresses on the stack causing the frame size to blow |
| 14 | # out. See https://github.com/ClangBuiltLinux/linux/issues/252 |
| 15 | ccflags-$(CONFIG_CC_IS_CLANG) += -Wframe-larger-than=4096 |
| 16 | |
| 17 | obj-y += xmon.o nonstdio.o spr_access.o xmon_bpts.o |
| 18 | |
| 19 | obj-$(CONFIG_XMON_DISASSEMBLY) += ppc-dis.o ppc-opc.o |