mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-15 01:44:52 +00:00
23ad1a2700
Back when I added -Werror in commit ba55bd74360e ("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>
29 lines
791 B
Makefile
29 lines
791 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for the powerpc trace subsystem
|
|
#
|
|
|
|
ifdef CONFIG_FUNCTION_TRACER
|
|
# do not trace tracer code
|
|
CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE)
|
|
endif
|
|
|
|
obj32-$(CONFIG_FUNCTION_TRACER) += ftrace_32.o
|
|
obj64-$(CONFIG_FUNCTION_TRACER) += ftrace_64.o
|
|
ifdef CONFIG_MPROFILE_KERNEL
|
|
obj64-$(CONFIG_FUNCTION_TRACER) += ftrace_64_mprofile.o
|
|
else
|
|
obj64-$(CONFIG_FUNCTION_TRACER) += ftrace_64_pg.o
|
|
endif
|
|
obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
|
|
obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o
|
|
obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o
|
|
obj-$(CONFIG_TRACING) += trace_clock.o
|
|
|
|
obj-$(CONFIG_PPC64) += $(obj64-y)
|
|
obj-$(CONFIG_PPC32) += $(obj32-y)
|
|
|
|
# Disable GCOV & sanitizers in odd or sensitive code
|
|
GCOV_PROFILE_ftrace.o := n
|
|
UBSAN_SANITIZE_ftrace.o := n
|