Marco Elver | dfd402a | 2019-11-14 19:02:54 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | KCSAN_SANITIZE := n |
| 3 | KCOV_INSTRUMENT := n |
Marco Elver | d47715f | 2019-11-19 19:57:42 +0100 | [diff] [blame] | 4 | UBSAN_SANITIZE := n |
Marco Elver | dfd402a | 2019-11-14 19:02:54 +0100 | [diff] [blame] | 5 | |
| 6 | CFLAGS_REMOVE_core.o = $(CC_FLAGS_FTRACE) |
Marco Elver | f5d2313 | 2020-02-14 22:10:35 +0100 | [diff] [blame] | 7 | CFLAGS_REMOVE_debugfs.o = $(CC_FLAGS_FTRACE) |
| 8 | CFLAGS_REMOVE_report.o = $(CC_FLAGS_FTRACE) |
Marco Elver | dfd402a | 2019-11-14 19:02:54 +0100 | [diff] [blame] | 9 | |
Marco Elver | 2839a23 | 2020-06-18 11:31:17 +0200 | [diff] [blame] | 10 | CFLAGS_core.o := $(call cc-option,-fno-conserve-stack) \ |
Kefeng Wang | dd03762 | 2021-12-11 21:17:34 +0800 | [diff] [blame] | 11 | $(call cc-option,-mno-outline-atomics) \ |
Marco Elver | 61d56d7 | 2020-06-18 11:31:18 +0200 | [diff] [blame] | 12 | -fno-stack-protector -DDISABLE_BRANCH_PROFILING |
Marco Elver | dfd402a | 2019-11-14 19:02:54 +0100 | [diff] [blame] | 13 | |
| 14 | obj-y := core.o debugfs.o report.o |
Marco Elver | 71b0e3a | 2021-11-30 12:44:21 +0100 | [diff] [blame] | 15 | |
| 16 | KCSAN_INSTRUMENT_BARRIERS_selftest.o := y |
Marco Elver | acfa087 | 2020-06-16 14:36:23 +0200 | [diff] [blame] | 17 | obj-$(CONFIG_KCSAN_SELFTEST) += selftest.o |
Marco Elver | 1fe84fd | 2020-05-05 20:28:21 +0200 | [diff] [blame] | 18 | |
Marco Elver | a146fed | 2021-01-13 17:05:56 +0100 | [diff] [blame] | 19 | CFLAGS_kcsan_test.o := $(CFLAGS_KCSAN) -g -fno-omit-frame-pointer |
| 20 | obj-$(CONFIG_KCSAN_KUNIT_TEST) += kcsan_test.o |