treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / powerpc / xmon / Makefile
blobc3842dbeb1b75e568c6548a39a6045810ea54a3a
1 # SPDX-License-Identifier: GPL-2.0
2 # Makefile for xmon
4 # Avoid clang warnings around longjmp/setjmp declarations
5 subdir-ccflags-y := -ffreestanding
7 GCOV_PROFILE := n
8 KCOV_INSTRUMENT := n
9 UBSAN_SANITIZE := n
10 KASAN_SANITIZE := n
12 # Disable ftrace for the entire directory
13 ORIG_CFLAGS := $(KBUILD_CFLAGS)
14 KBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS))
16 ifdef 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
19 KBUILD_CFLAGS += -Wframe-larger-than=4096
20 endif
22 ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC)
24 obj-y += xmon.o nonstdio.o spr_access.o
26 ifdef CONFIG_XMON_DISASSEMBLY
27 obj-y += ppc-dis.o ppc-opc.o
28 obj-$(CONFIG_SPU_BASE) += spu-dis.o spu-opc.o
29 endif