1# SPDX-License-Identifier: GPL-2.0 2KCSAN_SANITIZE := n 3KCOV_INSTRUMENT := n 4UBSAN_SANITIZE := n 5 6CFLAGS_REMOVE_core.o = $(CC_FLAGS_FTRACE) 7CFLAGS_REMOVE_debugfs.o = $(CC_FLAGS_FTRACE) 8CFLAGS_REMOVE_report.o = $(CC_FLAGS_FTRACE) 9 10CFLAGS_core.o := $(call cc-option,-fno-conserve-stack) \ 11 -fno-stack-protector -DDISABLE_BRANCH_PROFILING 12 13obj-y := core.o debugfs.o report.o 14 15KCSAN_INSTRUMENT_BARRIERS_selftest.o := y 16obj-$(CONFIG_KCSAN_SELFTEST) += selftest.o 17 18CFLAGS_kcsan_test.o := $(CFLAGS_KCSAN) -g -fno-omit-frame-pointer 19obj-$(CONFIG_KCSAN_KUNIT_TEST) += kcsan_test.o 20