kbuild: Correctly deal with make options which contain an "s"
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / Makefile
index 2e78b080033488c4d19b4ce453a6aeacb269d9f9..a9c1a3b7f1ee4e63fe6de5785897b999041d9695 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -312,7 +312,7 @@ endif
 # If the user is running make -s (silent mode), suppress echoing of
 # commands
 
-ifneq ($(findstring s,$(MAKEFLAGS)),)
+ifneq ($(filter s% -s%,$(MAKEFLAGS)),)
   quiet=silent_
 endif