Makefile: improve detection of make "-s" flag
Because it's just checking the presence of the "s" character even a make --warn-undefined-variables is detected as a silent build. Fix that by filtering out long options. Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> Cc: Arnout Vandecappelle <arnout@mind.be> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
aa441aa84c
commit
fffb68a83f
2
Makefile
2
Makefile
@ -304,7 +304,7 @@ GNU_HOST_NAME := $(shell support/gnuconfig/config.guess)
|
||||
TARGETS :=
|
||||
|
||||
# silent mode requested?
|
||||
QUIET := $(if $(findstring s,$(MAKEFLAGS)),-q)
|
||||
QUIET := $(if $(findstring s,$(filter-out --%,$(MAKEFLAGS))),-q)
|
||||
|
||||
# Strip off the annoying quoting
|
||||
ARCH := $(call qstrip,$(BR2_ARCH))
|
||||
|
Loading…
Reference in New Issue
Block a user