2019-11-15 01:02:54 +07:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
KCSAN_SANITIZE := n
|
|
|
|
KCOV_INSTRUMENT := n
|
2019-11-20 01:57:42 +07:00
|
|
|
UBSAN_SANITIZE := n
|
2019-11-15 01:02:54 +07:00
|
|
|
|
|
|
|
CFLAGS_REMOVE_core.o = $(CC_FLAGS_FTRACE)
|
2020-02-15 04:10:35 +07:00
|
|
|
CFLAGS_REMOVE_debugfs.o = $(CC_FLAGS_FTRACE)
|
|
|
|
CFLAGS_REMOVE_report.o = $(CC_FLAGS_FTRACE)
|
2019-11-15 01:02:54 +07:00
|
|
|
|
2020-06-18 16:31:17 +07:00
|
|
|
CFLAGS_core.o := $(call cc-option,-fno-conserve-stack) \
|
2020-06-18 16:31:18 +07:00
|
|
|
-fno-stack-protector -DDISABLE_BRANCH_PROFILING
|
2019-11-15 01:02:54 +07:00
|
|
|
|
|
|
|
obj-y := core.o debugfs.o report.o
|
2020-06-16 19:36:23 +07:00
|
|
|
obj-$(CONFIG_KCSAN_SELFTEST) += selftest.o
|
2020-05-06 01:28:21 +07:00
|
|
|
|
|
|
|
CFLAGS_kcsan-test.o := $(CFLAGS_KCSAN) -g -fno-omit-frame-pointer
|
|
|
|
obj-$(CONFIG_KCSAN_TEST) += kcsan-test.o
|