rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # Makefile for xmon |
| 3 | |
| 4 | subdir-ccflags-$(CONFIG_PPC_WERROR) += -Werror |
| 5 | |
| 6 | GCOV_PROFILE := n |
| 7 | UBSAN_SANITIZE := n |
| 8 | |
| 9 | # Disable ftrace for the entire directory |
| 10 | ORIG_CFLAGS := $(KBUILD_CFLAGS) |
| 11 | KBUILD_CFLAGS = $(subst -mno-sched-epilog,,$(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS))) |
| 12 | |
| 13 | ifdef 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 |
| 16 | KBUILD_CFLAGS += -Wframe-larger-than=4096 |
| 17 | endif |
| 18 | |
| 19 | ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC) |
| 20 | |
| 21 | obj-y += xmon.o nonstdio.o spr_access.o |
| 22 | |
| 23 | ifdef CONFIG_XMON_DISASSEMBLY |
| 24 | obj-y += ppc-dis.o ppc-opc.o |
| 25 | obj-$(CONFIG_SPU_BASE) += spu-dis.o spu-opc.o |
| 26 | endif |