1dfd402a4SMarco Elver# SPDX-License-Identifier: GPL-2.0 2dfd402a4SMarco ElverKCSAN_SANITIZE := n 3dfd402a4SMarco ElverKCOV_INSTRUMENT := n 4d47715f5SMarco ElverUBSAN_SANITIZE := n 5dfd402a4SMarco Elver 6dfd402a4SMarco ElverCFLAGS_REMOVE_core.o = $(CC_FLAGS_FTRACE) 7f5d2313bSMarco ElverCFLAGS_REMOVE_debugfs.o = $(CC_FLAGS_FTRACE) 8f5d2313bSMarco ElverCFLAGS_REMOVE_report.o = $(CC_FLAGS_FTRACE) 9dfd402a4SMarco Elver 102839a232SMarco ElverCFLAGS_core.o := $(call cc-option,-fno-conserve-stack) \ 11dd03762aSKefeng Wang $(call cc-option,-mno-outline-atomics) \ 1261d56d7aSMarco Elver -fno-stack-protector -DDISABLE_BRANCH_PROFILING 13dfd402a4SMarco Elver 14dfd402a4SMarco Elverobj-y := core.o debugfs.o report.o 1571b0e3aeSMarco Elver 1671b0e3aeSMarco ElverKCSAN_INSTRUMENT_BARRIERS_selftest.o := y 17acfa087cSMarco Elverobj-$(CONFIG_KCSAN_SELFTEST) += selftest.o 181fe84fd4SMarco Elver 19a146fed5SMarco ElverCFLAGS_kcsan_test.o := $(CFLAGS_KCSAN) -g -fno-omit-frame-pointer 20*6fcd4267SAnders RoxellCFLAGS_kcsan_test.o += $(DISABLE_STRUCTLEAK_PLUGIN) 21a146fed5SMarco Elverobj-$(CONFIG_KCSAN_KUNIT_TEST) += kcsan_test.o 22