diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-08-01 17:00:49 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-08-09 18:32:59 +0200 |
commit | e0fe0bbe57b8d708a18756be5bc289bdaf78d2a8 (patch) | |
tree | 72bf8b470a3707d7fa61cc05ebb13667f4120d63 /scripts/Makefile.kcsan | |
parent | kbuild: introduce hostprogs-always-y and userprogs-always-y (diff) | |
download | linux-e0fe0bbe57b8d708a18756be5bc289bdaf78d2a8.tar.xz linux-e0fe0bbe57b8d708a18756be5bc289bdaf78d2a8.zip |
kbuild: include scripts/Makefile.* only when relevant CONFIG is enabled
Currently, the top Makefile includes all of scripts/Makefile.<feature>
even if the associated CONFIG option is disabled.
Do not include unneeded Makefiles in order to slightly optimize the
parse stage.
Include $(include-y), and ignore $(include-).
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/Makefile.kcsan')
-rw-r--r-- | scripts/Makefile.kcsan | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/scripts/Makefile.kcsan b/scripts/Makefile.kcsan index bd4da1af5953..2b0743e6566e 100644 --- a/scripts/Makefile.kcsan +++ b/scripts/Makefile.kcsan @@ -1,6 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 -ifdef CONFIG_KCSAN - # GCC and Clang accept backend options differently. Do not wrap in cc-option, # because Clang accepts "--param" even if it is unused. ifdef CONFIG_CC_IS_CLANG @@ -15,5 +13,3 @@ CFLAGS_KCSAN := -fsanitize=thread \ $(call cc-option,$(call cc-param,tsan-instrument-func-entry-exit=0) -fno-optimize-sibling-calls) \ $(call cc-option,$(call cc-param,tsan-instrument-read-before-write=1)) \ $(call cc-param,tsan-distinguish-volatile=1) - -endif # CONFIG_KCSAN |