Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / kernel / kcsan / Makefile
bloba45f3dfc8d14169ae3ea4ee875897213f81236be
1 # SPDX-License-Identifier: GPL-2.0
2 KCSAN_SANITIZE := n
3 KCOV_INSTRUMENT := n
4 UBSAN_SANITIZE := n
6 CFLAGS_REMOVE_core.o = $(CC_FLAGS_FTRACE)
7 CFLAGS_REMOVE_debugfs.o = $(CC_FLAGS_FTRACE)
8 CFLAGS_REMOVE_report.o = $(CC_FLAGS_FTRACE)
10 CFLAGS_core.o := $(call cc-option,-fno-conserve-stack) \
11 $(call cc-option,-mno-outline-atomics) \
12 -fno-stack-protector -DDISABLE_BRANCH_PROFILING
14 obj-y := core.o debugfs.o report.o
16 KCSAN_INSTRUMENT_BARRIERS_selftest.o := y
17 obj-$(CONFIG_KCSAN_SELFTEST) += selftest.o
19 CFLAGS_kcsan_test.o := $(CFLAGS_KCSAN) -fno-omit-frame-pointer
20 CFLAGS_kcsan_test.o += $(DISABLE_STRUCTLEAK_PLUGIN)
21 obj-$(CONFIG_KCSAN_KUNIT_TEST) += kcsan_test.o