Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
- Makefile | 13 ++++++++++---
+ Makefile | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
-diff --git a/Makefile b/Makefile
-index 6f846b1f2618..fbd9ff4a61e7 100644
--- a/Makefile
+++ b/Makefile
-@@ -93,10 +93,17 @@ endif
+@@ -88,10 +88,17 @@ endif
# If the user is running make -s (silent mode), suppress echoing of
# commands
-ifneq ($(findstring s,$(filter-out --%,$(MAKEFLAGS))),)
- quiet=silent_
-- KBUILD_VERBOSE = 0
+- tools_silent=s
+ifeq ($(filter 3.%,$(MAKE_VERSION)),)
+silence:=$(findstring s,$(firstword -$(MAKEFLAGS)))
+else
+
+ifeq ($(silence),s)
+quiet=silent_
-+KBUILD_VERBOSE = 0
++tools_silent=s
endif
export quiet Q KBUILD_VERBOSE
---
-2.39.2
-