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) \ 11*dd03762aSKefeng 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 15acfa087cSMarco Elverobj-$(CONFIG_KCSAN_SELFTEST) += selftest.o 161fe84fd4SMarco Elver 17a146fed5SMarco ElverCFLAGS_kcsan_test.o := $(CFLAGS_KCSAN) -g -fno-omit-frame-pointer 18a146fed5SMarco Elverobj-$(CONFIG_KCSAN_KUNIT_TEST) += kcsan_test.o 19