1 # SPDX-License-Identifier: GPL-2.0
4 # Disable clang warning for using setjmp without setjmp.h header
5 subdir-ccflags-y
:= $(call cc-disable-warning
, builtin-requires-header
)
7 subdir-ccflags-
$(CONFIG_PPC_WERROR
) += -Werror
12 # Disable ftrace for the entire directory
13 ORIG_CFLAGS
:= $(KBUILD_CFLAGS
)
14 KBUILD_CFLAGS
= $(subst -mno-sched-epilog
,,$(subst $(CC_FLAGS_FTRACE
),,$(ORIG_CFLAGS
)))
16 ccflags-
$(CONFIG_PPC64
) := $(NO_MINIMAL_TOC
)
18 obj-y
+= xmon.o nonstdio.o spr_access.o
20 ifdef CONFIG_XMON_DISASSEMBLY
21 obj-y
+= ppc-dis.o ppc-opc.o
22 obj-
$(CONFIG_SPU_BASE
) += spu-dis.o spu-opc.o