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.kcov | |
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.kcov')
-rw-r--r-- | scripts/Makefile.kcov | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/scripts/Makefile.kcov b/scripts/Makefile.kcov index 52b113302443..67e8cfe3474b 100644 --- a/scripts/Makefile.kcov +++ b/scripts/Makefile.kcov @@ -1,10 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only -ifdef CONFIG_KCOV - kcov-flags-$(CONFIG_CC_HAS_SANCOV_TRACE_PC) += -fsanitize-coverage=trace-pc kcov-flags-$(CONFIG_KCOV_ENABLE_COMPARISONS) += -fsanitize-coverage=trace-cmp kcov-flags-$(CONFIG_GCC_PLUGIN_SANCOV) += -fplugin=$(objtree)/scripts/gcc-plugins/sancov_plugin.so export CFLAGS_KCOV := $(kcov-flags-y) - -endif |