blob: c2bb07f5bcc724f12fc36f88212bb56094ff2040 [file] [log] [blame]
Marco Elverdfd402a2019-11-14 19:02:54 +01001# SPDX-License-Identifier: GPL-2.0
2KCSAN_SANITIZE := n
3KCOV_INSTRUMENT := n
Marco Elverd47715f2019-11-19 19:57:42 +01004UBSAN_SANITIZE := n
Marco Elverdfd402a2019-11-14 19:02:54 +01005
6CFLAGS_REMOVE_core.o = $(CC_FLAGS_FTRACE)
Marco Elverf5d23132020-02-14 22:10:35 +01007CFLAGS_REMOVE_debugfs.o = $(CC_FLAGS_FTRACE)
8CFLAGS_REMOVE_report.o = $(CC_FLAGS_FTRACE)
Marco Elverdfd402a2019-11-14 19:02:54 +01009
Marco Elver2839a232020-06-18 11:31:17 +020010CFLAGS_core.o := $(call cc-option,-fno-conserve-stack) \
Marco Elver61d56d72020-06-18 11:31:18 +020011 -fno-stack-protector -DDISABLE_BRANCH_PROFILING
Marco Elverdfd402a2019-11-14 19:02:54 +010012
13obj-y := core.o debugfs.o report.o
Marco Elveracfa0872020-06-16 14:36:23 +020014obj-$(CONFIG_KCSAN_SELFTEST) += selftest.o
Marco Elver1fe84fd2020-05-05 20:28:21 +020015
Marco Elvera146fed2021-01-13 17:05:56 +010016CFLAGS_kcsan_test.o := $(CFLAGS_KCSAN) -g -fno-omit-frame-pointer
17obj-$(CONFIG_KCSAN_KUNIT_TEST) += kcsan_test.o