2019-11-14 18:02:54 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
KCSAN_SANITIZE := n
|
|
|
|
KCOV_INSTRUMENT := n
|
2019-11-19 18:57:42 +00:00
|
|
|
UBSAN_SANITIZE := n
|
2019-11-14 18:02:54 +00:00
|
|
|
|
|
|
|
CFLAGS_REMOVE_core.o = $(CC_FLAGS_FTRACE)
|
2020-02-14 21:10:35 +00:00
|
|
|
CFLAGS_REMOVE_debugfs.o = $(CC_FLAGS_FTRACE)
|
|
|
|
CFLAGS_REMOVE_report.o = $(CC_FLAGS_FTRACE)
|
2019-11-14 18:02:54 +00:00
|
|
|
|
2020-06-18 09:31:17 +00:00
|
|
|
CFLAGS_core.o := $(call cc-option,-fno-conserve-stack) \
|
2021-12-11 13:17:34 +00:00
|
|
|
$(call cc-option,-mno-outline-atomics) \
|
2020-06-18 09:31:18 +00:00
|
|
|
-fno-stack-protector -DDISABLE_BRANCH_PROFILING
|
2019-11-14 18:02:54 +00:00
|
|
|
|
|
|
|
obj-y := core.o debugfs.o report.o
|
2021-11-30 11:44:21 +00:00
|
|
|
|
|
|
|
KCSAN_INSTRUMENT_BARRIERS_selftest.o := y
|
2020-06-16 12:36:23 +00:00
|
|
|
obj-$(CONFIG_KCSAN_SELFTEST) += selftest.o
|
2020-05-05 18:28:21 +00:00
|
|
|
|
2023-03-16 22:47:05 +00:00
|
|
|
CFLAGS_kcsan_test.o := $(CFLAGS_KCSAN) -fno-omit-frame-pointer
|
2022-11-28 10:43:58 +00:00
|
|
|
CFLAGS_kcsan_test.o += $(DISABLE_STRUCTLEAK_PLUGIN)
|
2021-01-13 16:05:56 +00:00
|
|
|
obj-$(CONFIG_KCSAN_KUNIT_TEST) += kcsan_test.o
|