Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: refactor silent mode detection

Factor out $(findstring s,...).

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>

+3 -3
+3 -3
Makefile
··· 100 100 # make-4.0 (and later) keep single letter options in the 1st word of MAKEFLAGS. 101 101 102 102 ifeq ($(filter 3.%,$(MAKE_VERSION)),) 103 - silence:=$(findstring s,$(firstword -$(MAKEFLAGS))) 103 + short-opts := $(firstword -$(MAKEFLAGS)) 104 104 else 105 - silence:=$(findstring s,$(filter-out --%,$(MAKEFLAGS))) 105 + short-opts := $(filter-out --%,$(MAKEFLAGS)) 106 106 endif 107 107 108 - ifeq ($(silence),s) 108 + ifneq ($(findstring s,$(short-opts)),) 109 109 quiet=silent_ 110 110 KBUILD_VERBOSE = 0 111 111 endif