blob: 4f35d1bced6a2ced3b286a84aaf7cb49204292e1 [file] [log] [blame]
Marco Elverdfd402a2019-11-14 19:02:54 +01001# SPDX-License-Identifier: GPL-2.0
2KCSAN_SANITIZE := n
3KCOV_INSTRUMENT := n
Marco Elverd47715f2019-11-19 19:57:42 +01004UBSAN_SANITIZE := n
Marco Elverdfd402a2019-11-14 19:02:54 +01005
6CFLAGS_REMOVE_core.o = $(CC_FLAGS_FTRACE)
Marco Elverf5d23132020-02-14 22:10:35 +01007CFLAGS_REMOVE_debugfs.o = $(CC_FLAGS_FTRACE)
8CFLAGS_REMOVE_report.o = $(CC_FLAGS_FTRACE)
Marco Elverdfd402a2019-11-14 19:02:54 +01009
Marco Elver2839a232020-06-18 11:31:17 +020010CFLAGS_core.o := $(call cc-option,-fno-conserve-stack) \
Kefeng Wangdd037622021-12-11 21:17:34 +080011 $(call cc-option,-mno-outline-atomics) \
Marco Elver61d56d72020-06-18 11:31:18 +020012 -fno-stack-protector -DDISABLE_BRANCH_PROFILING
Marco Elverdfd402a2019-11-14 19:02:54 +010013
14obj-y := core.o debugfs.o report.o
Marco Elver71b0e3a2021-11-30 12:44:21 +010015
16KCSAN_INSTRUMENT_BARRIERS_selftest.o := y
Marco Elveracfa0872020-06-16 14:36:23 +020017obj-$(CONFIG_KCSAN_SELFTEST) += selftest.o
Marco Elver1fe84fd2020-05-05 20:28:21 +020018
Marco Elvera146fed2021-01-13 17:05:56 +010019CFLAGS_kcsan_test.o := $(CFLAGS_KCSAN) -g -fno-omit-frame-pointer
20obj-$(CONFIG_KCSAN_KUNIT_TEST) += kcsan_test.o