kbuild: include scripts/Makefile.* only when relevant CONFIG is enabled
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 1 Aug 2020 15:00:49 +0000 (00:00 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 9 Aug 2020 16:32:59 +0000 (01:32 +0900)
commite0fe0bbe57b8d708a18756be5bc289bdaf78d2a8
tree72bf8b470a3707d7fa61cc05ebb13667f4120d63
parentfaabed295cccc2aba2b67f2e7b309f2892d55004
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>
Makefile
scripts/Makefile.kcov
scripts/Makefile.kcsan
scripts/Makefile.ubsan