diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-08-02 00:00:49 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-08-10 01:32:59 +0900 |
commit | e0fe0bbe57b8d708a18756be5bc289bdaf78d2a8 (patch) | |
tree | 72bf8b470a3707d7fa61cc05ebb13667f4120d63 /scripts/Makefile.ubsan | |
parent | faabed295cccc2aba2b67f2e7b309f2892d55004 (diff) | |
download | linux-e0fe0bbe57b8d708a18756be5bc289bdaf78d2a8.tar.gz linux-e0fe0bbe57b8d708a18756be5bc289bdaf78d2a8.tar.bz2 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.ubsan')
-rw-r--r-- | scripts/Makefile.ubsan | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/Makefile.ubsan b/scripts/Makefile.ubsan index 5b15bc425ec9..27348029b2b8 100644 --- a/scripts/Makefile.ubsan +++ b/scripts/Makefile.ubsan @@ -1,6 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 -ifdef CONFIG_UBSAN - ifdef CONFIG_UBSAN_ALIGNMENT CFLAGS_UBSAN += $(call cc-option, -fsanitize=alignment) endif @@ -26,4 +24,3 @@ endif # -fsanitize=* options makes GCC less smart than usual and # increase number of 'maybe-uninitialized false-positives CFLAGS_UBSAN += $(call cc-option, -Wno-maybe-uninitialized) -endif |