forked from Minki/linux
23ad1a2700
Back when I added -Werror in commit ba55bd7436
("powerpc: Add
configurable -Werror for arch/powerpc") I did it by adding it to most
of the arch Makefiles.
At the time we excluded math-emu, because apparently it didn't build
cleanly. But that seems to have been fixed somewhere in the interim.
So move the -Werror addition to the top-level of the arch, this saves
us from repeating it in every Makefile and means we won't forget to
add it to any new sub-dirs.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
22 lines
570 B
Makefile
22 lines
570 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Makefile for xmon
|
|
|
|
# Disable clang warning for using setjmp without setjmp.h header
|
|
subdir-ccflags-y := $(call cc-disable-warning, builtin-requires-header)
|
|
|
|
GCOV_PROFILE := n
|
|
UBSAN_SANITIZE := n
|
|
|
|
# Disable ftrace for the entire directory
|
|
ORIG_CFLAGS := $(KBUILD_CFLAGS)
|
|
KBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS))
|
|
|
|
ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC)
|
|
|
|
obj-y += xmon.o nonstdio.o spr_access.o
|
|
|
|
ifdef CONFIG_XMON_DISASSEMBLY
|
|
obj-y += ppc-dis.o ppc-opc.o
|
|
obj-$(CONFIG_SPU_BASE) += spu-dis.o spu-opc.o
|
|
endif
|