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:
Bertrand Marquis authored and Jan Beulich committed 2026-02-11 12:20:56 +01:00
1 parent 80ff08137e
commit 4bb46b8558
1 file changed
+5 -4
+5 -4
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.