mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xen: Use MFLAGS for silent-mode detection
GNU make 4.4+ exposes variable overrides in MAKEFLAGS after "--" (e.g.
O=/path, FOO=bar). The silent-mode check searches for "s" and can match
an override value, forcing silent output even without -s.
Use MFLAGS for short options and filter out any long options before
searching for "s". This preserves -s detection while avoiding false
positives from overrides.
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: f2a31b7d7c
master date: 2026-02-10 10:22:53 +0100
This commit is contained in:
1 parent
80ff08137e
commit
4bb46b8558
1 file changed
+5
-4
+5
-4
@@ -113,10 +113,11 @@ else
|
||||
Q := @
|
||||
endif
|
||||
|
||||
# If the user is running make -s (silent mode), suppress echoing of
|
||||
# commands
|
||||
|
||||
ifneq ($(findstring s,$(filter-out --%,$(MAKEFLAGS))),)
|
||||
# If the user is running make -s (silent mode), suppress echoing of commands.
|
||||
# Use MFLAGS (options only). MAKEFLAGS may include variable overrides after
|
||||
# “--” (GNU make 4.4 and newer), which can contain an “s” and falsely trigger
|
||||
# silent mode.
|
||||
ifneq ($(findstring s,$(filter-out --%,$(MFLAGS))),)
|
||||
quiet := silent_
|
||||
endif
|
||||
|
||||
|
||||