[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1] xen: Use MFLAGS for silent-mode detection


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Fri, 6 Feb 2026 08:09:54 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=suse.com smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7Rabjhhvd83tr7aWZzIR0w55EB/7Bw+hHmRK29bmjAM=; b=ps+KL1/qlPGxIKD8u/5CihTzOEl4ERJWoU3EpAar2Gc8iOEqhczLvgk0fNTcZds8p04Idr3YDo9Z/UAMZqNklvLv35oOJbU24CRx1+aYdR7zYnwpl4Z5iOAWN6K9awfWw8sOwrZk1NPAFNAjWhEmxeWS3NNrOtxMGCdM+ZzijvRD1SrtS+aPxOQOgaSRcM30/cL+w5TAiJUTiCcvnU7SYL7l9NVu0VPZHmkpnkRarM6QLii53hiW30h4uNtsiDZBJ92QYOSxX1p4QmbtwTmBY/ddES14U2XHxkVxv4DNSs2iQ5CXJWzEJbadF41DSGsYPmuGlHP402Hvdjld38dlTw==
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7Rabjhhvd83tr7aWZzIR0w55EB/7Bw+hHmRK29bmjAM=; b=qREo6PEv5XjBLvFHaJ1NFsoUiHDIW9y3OHFO+lBGv6AA6+0v45zzG6R6yC9AVyynixuKwkU6HwRJ3AU05PoiQafW0+xKFPBWMTBAOGfJURisyff0dJ9StdvEcVb1oJBNVMYUfCOrQUhLKxbeurzwlj7Dka4vDEN9K93azvM2SIONKtOfzb2WU5NRecLTJfzNHBW5mzEe63hQmlirWBzIXCizcXw2W2e8JGbGFkf7I78xzxL4hE7nUgdVGd/w7j+nKPKUwio9QVR+Wk8bVI1dDyPrRnvQQcoxBOwqY3eJX9u/fBruZO/0xpdoZOcsMnu9sxxLNDmYYrWeJr+rHZPl0Q==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=TofQlYGmaJ/WQVYj68ci6Xzk6ANQWLa357j1gnjFRmcvfbfpqtb/6zUqGrqx65hJg/c/HYG+UH29ik9qN4E9uedMsAnKLr0arWDNx4tsB4Rtrk5ZVLyuSBZMoXNQ1+19Oc211lsT+lDNgjFo45KT8faeuD27/2s8Tzuvcf8zTMcSF7N051C0EUsgvqW40sPm0b18IrvETM73jMh4jVhlIlv3wWSuOf3pkCu7rEP4P1r9Rxxn53w5Rf7tpsEgM7cVXq29EWLWi0rqAZPtgMxmeCNudWVoguRuZRLk0mYuh6w1IVBzZJl1Cf5zRJDz7JXjEDwh1c4PiUqnbMHWky0ZXw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=k/hKnbWw737c7OVrlHMxC0kHfcVyenoJvwTrkbw4NnWzOvCsZkkmuEPClbkSzQNyIBepoOF9+jnYdYi672UBvNZUr5r5D5ujHgFqtzdMeySOj6wWqkYKP0aob7/Auhr4/VdAbDEo6c9vSo0OLJD8vruIqKdZx1idxXGEb1PaFDaXJGOx969iJmsrIfHuuXGlemZHHy00B1bh3zHikR+Y0Qd3Ec+mxutpu7ZKlIYFvcBb9Jaum0B2esOVkQlW6UXIrtKHnrLWi8gsxbsPyiPE9dlyJmkvWrK+IRgvkAKtUfSKefRHUnEFcfkzLVdnopvui2sAGaUsmphFf8tN2qQP/g==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 06 Feb 2026 08:11:17 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Thread-index: AQHclpNYPLhzf1Jy6UKGKEMKa2gWarVz/LiAgAAD8oCAAU1iAIAAAYGAgAADMwA=
  • Thread-topic: [PATCH v1] xen: Use MFLAGS for silent-mode detection

Hi,

> On 6 Feb 2026, at 08:58, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> 
> On 06.02.2026 08:53, Bertrand Marquis wrote:
>> Hi Jan,
>> 
>>> On 5 Feb 2026, at 12:59, Bertrand Marquis <Bertrand.Marquis@xxxxxxx> wrote:
>>> 
>>> Hi Jan,
>>> 
>>>> On 5 Feb 2026, at 12:45, Jan Beulich <jbeulich@xxxxxxxx> wrote:
>>>> 
>>>> On 05.02.2026 12:33, Bertrand Marquis wrote:
>>>>> 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.
>>>>> 
>>>>> Fixes: 4fdb4b71b152 ("xen/build: introduce if_changed and 
>>>>> if_changed_rule")
>>>> 
>>>> I don't think this is quite right: make 4.4 post-dates that commit by about
>>>> 2.5 years.
>>> 
>>> True, we can remove the fixes tag.
>>> 
>>>> 
>>>>> 
>>>>> Signed-off-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>
>>>> 
>>>> Nit: No blank lines between tags, please.
>>> 
>>> Ack
>>> 
>>>> 
>>>>> --- a/xen/Makefile
>>>>> +++ b/xen/Makefile
>>>>> @@ -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 (short options only). MAKEFLAGS may include variable 
>>>>> overrides
>>>> 
>>>> Why "short options only"? It looks you mean to describe the macro here, not
>>>> what's done in the ifeq(); at the very least it can be read both ways.
>>> 
>>> True should be.
>>> Filter short options from MFLAGS.
>>> 
>>>> 
>>>>> +# after “--” (GNU make greater than 4.4), which can contain an “s” and 
>>>>> falsely
>>>> 
>>>> 4.4 and newer really, as 4.4 itself is included in the affected range. I'm
>>>> not quite sure anyway whether the comment really needs to go this far. This
>>>> kind of detail can be had from the commit message of this change, if 
>>>> needed.
>>>> 
>>>> Happy to make adjustments while committing, yet I'm not sure whether you
>>>> agree in all regards.
>>> 
>>> Agree.
>>> 
>>> If you agree and can do that on commit, i would just put:
>>> 
>>> Filter short options from MFLAGS as MAKEFLAGS may include variable 
>>> overrides.
>> 
>> Are you ok to give a reviewed-by and do the changes on commit or do you want 
>> me to
>> push a v2 with those fixes ?
> 
> I'm intending to make adjustments while committing. That will now be next 
> week only,
> though.

Works for me no rush, it is just that you never send a R-b on the ML on this 
patch.

Cheers
Bertrand

> 
> Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.