mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 15:41:36 +00:00
a146fed56f
Per recently added KUnit style recommendations at Documentation/dev-tools/kunit/style.rst, make the following changes to the KCSAN test: 1. Rename 'kcsan-test.c' to 'kcsan_test.c'. 2. Rename suite name 'kcsan-test' to 'kcsan'. 3. Rename CONFIG_KCSAN_TEST to CONFIG_KCSAN_KUNIT_TEST and default to KUNIT_ALL_TESTS. Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Marco Elver <elver@google.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
18 lines
528 B
Makefile
18 lines
528 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
KCSAN_SANITIZE := n
|
|
KCOV_INSTRUMENT := n
|
|
UBSAN_SANITIZE := n
|
|
|
|
CFLAGS_REMOVE_core.o = $(CC_FLAGS_FTRACE)
|
|
CFLAGS_REMOVE_debugfs.o = $(CC_FLAGS_FTRACE)
|
|
CFLAGS_REMOVE_report.o = $(CC_FLAGS_FTRACE)
|
|
|
|
CFLAGS_core.o := $(call cc-option,-fno-conserve-stack) \
|
|
-fno-stack-protector -DDISABLE_BRANCH_PROFILING
|
|
|
|
obj-y := core.o debugfs.o report.o
|
|
obj-$(CONFIG_KCSAN_SELFTEST) += selftest.o
|
|
|
|
CFLAGS_kcsan_test.o := $(CFLAGS_KCSAN) -g -fno-omit-frame-pointer
|
|
obj-$(CONFIG_KCSAN_KUNIT_TEST) += kcsan_test.o
|