From patchwork Fri Nov 29 01:49:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 13888395 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 78D88D70E08 for ; Fri, 29 Nov 2024 01:49:38 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.845649.1261018 (Exim 4.92) (envelope-from ) id 1tGq8L-0004rX-Dh; Fri, 29 Nov 2024 01:49:25 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 845649.1261018; Fri, 29 Nov 2024 01:49:25 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tGq8L-0004rJ-4u; Fri, 29 Nov 2024 01:49:25 +0000 Received: by outflank-mailman (input) for mailman id 845649; Fri, 29 Nov 2024 01:49:24 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tGq8K-0004ZT-4U for xen-devel@lists.xenproject.org; Fri, 29 Nov 2024 01:49:24 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2061e.outbound.protection.outlook.com [2a01:111:f403:2614::61e]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 273d2816-adf4-11ef-a0cf-8be0dac302b0; Fri, 29 Nov 2024 02:49:21 +0100 (CET) Received: from GV1PR03MB10456.eurprd03.prod.outlook.com (2603:10a6:150:16a::21) by PAVPR03MB8923.eurprd03.prod.outlook.com (2603:10a6:102:32c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.14; Fri, 29 Nov 2024 01:49:13 +0000 Received: from GV1PR03MB10456.eurprd03.prod.outlook.com ([fe80::a41e:5aa8:e298:757e]) by GV1PR03MB10456.eurprd03.prod.outlook.com ([fe80::a41e:5aa8:e298:757e%7]) with mapi id 15.20.8182.018; Fri, 29 Nov 2024 01:49:13 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 273d2816-adf4-11ef-a0cf-8be0dac302b0 X-Custom-Connection: eyJyZW1vdGVpcCI6IjJhMDE6MTExOmY0MDM6MjYxNDo6NjFlIiwiaGVsbyI6IkVVUjA1LURCOC1vYmUub3V0Ym91bmQucHJvdGVjdGlvbi5vdXRsb29rLmNvbSJ9 X-Custom-Transaction: eyJpZCI6IjI3M2QyODE2LWFkZjQtMTFlZi1hMGNmLThiZTBkYWMzMDJiMCIsInRzIjoxNzMyODQ0OTYxLjQ4Mjg4OCwic2VuZGVyIjoidm9sb2R5bXlyX2JhYmNodWtAZXBhbS5jb20iLCJyZWNpcGllbnQiOiJ4ZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcifQ== ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RDgX81zyQoBybsO0w9cajZTkNvfYZ/li4C8vzWGT3nbnlIdkL6JBo+fQ+gG3k2YN+rh+z1TazodFHLo2ey00ZHuI9LAF/6CndBEiZZefhvtphrAcy7ew5SP8mTMuWmx8Wmolt4DTb2jQWjjD4z6zgBSc593t+uafO5j/amFsrx3FBGOcWtwV9KNpHddwYGEiY8gfLHT0d3EJvlAGcYu1fU3VAX7/TYvORZ7LeMy3OfoVfubD4sz+426YS2kh0akvADDSPMrMxCV/eWOaZuxWxlKo78JUpmjj4Uf8RcfDxUi8j0J1le/5e5C5p62QMd1TOWS0qEIW2OTBn1EJ6sEV2w== 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=cT9VoTsV8c2mDTKSh8O3lk/cPOowmpDe2ws18KxovqM=; b=j5/WdM5K+5Eo0/8EmIyZPCwxwIpa3noy9SK5kotAifgTOR1bZgC1buxCTffRxV5Zm/pNFdy6uLd6aFWOeXLLKvbO8PRKPPPfcMwiWHfmYOCysPCNXhLojBCJs4wKUSIWAySszA8EOMpiiVgt3nf8P62Fs8MHBOalMri33NXyyPgVYuhaL3yAVpqbRJ33eaH8iCq84LCGbD3Xa6r7AQh5oFbj6I+sdASkiWXyqBKpwTUv1X2pcMwT3LmjsXR8qhKle1siPVvb3+wMDGlZC45MdPecivLqs6KNkkbAGZ1/6Npuga4yq6giw+jvxSYjo66yRujeXLCQHC7oKsXkoxxeZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cT9VoTsV8c2mDTKSh8O3lk/cPOowmpDe2ws18KxovqM=; b=YmQN6avDxaVXuHeKlwjxsuUgMn6PFaZXB0VKR656bodv5w5PIJORYtAEfhTJZEkA0/ubyDToSAP8JRRuEd4doTFaSBaPGOdErIIojSzvl9wdw1NF7vm3vTPBhxbN8MaQk0xT++zFdSkuPETZq0j6ke2tpX6jRCQpzL0BqCg3ZEpnrhaLb2ZLI2dymupNiQVS7UaIBHPfn1vzLn/Gl2CQX5uPwDk4l9ggCT7r721BE+GKHhHmXRWrC6A93DnwFF6iBsZ7w/RV8L0nhHaspTAnb88Kozze947bSsn3gA5KtdWUPG/8oIIhPy3y8nudozvwMq9Ri5FyJQ7oOLPFrvXvJg== From: Volodymyr Babchuk To: "xen-devel@lists.xenproject.org" CC: Volodymyr Babchuk , Andrew Cooper , Jan Beulich , Julien Grall , Stefano Stabellini Subject: [PATCH 4/5] xen: build: add support for CFLAGS_REMOVE variable Thread-Topic: [PATCH 4/5] xen: build: add support for CFLAGS_REMOVE variable Thread-Index: AQHbQgDi3w2c4ZYqbkyJK+dadw8SYA== Date: Fri, 29 Nov 2024 01:49:10 +0000 Message-ID: <20241129014850.2852844-5-volodymyr_babchuk@epam.com> References: <20241129014850.2852844-1-volodymyr_babchuk@epam.com> In-Reply-To: <20241129014850.2852844-1-volodymyr_babchuk@epam.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.47.0 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: GV1PR03MB10456:EE_|PAVPR03MB8923:EE_ x-ms-office365-filtering-correlation-id: 0d3cf442-6c55-4133-67eb-08dd101806b7 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?+1o7mVMWwdo0HqOI04ZnVzfWtT?= =?iso-8859-1?q?paugxIdzWButim8uRV4OpefkHesv61dAGtetkXoe2aUJ/UwDgjTlBs+cIGRK?= =?iso-8859-1?q?N7/rXJeekZc6f7t0thbEFaiIKydWFhkwJWCWz+sANgSqdtnfyN7YWebf7SFd?= =?iso-8859-1?q?Pc8AJTMEtjqmIqP4XgwlVVD1rzD/gvbPmZtSEg1jjMfGhyw6BClTuvGUAryY?= =?i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jJGQ8OMMT7YTcbXeoeFhI3IjaLuiaA61j2juVK?= =?iso-8859-1?q?8Xbk7sJiZTZPxayegaSpEMiAaoCtOlLEcjlibEVD/t8niSQITOGk6/WsagCv?= =?iso-8859-1?q?BcGs+KzaoStIbN9V1VnHbPgW07fS4AdIO+2SkiYOnh8HyTBWRcj5U78Ah1Oi?= =?iso-8859-1?q?kp2wDTtq7KYzWlfsQgX+fIfkzzWW2f4CZj+9oB9e1sXNRe+3ZFV32ow+NvGw?= =?iso-8859-1?q?zYwFklA6OBRwzw40XzsU/erxsQhpk4uWXGV41nbm5bKaeAHS/yL8tKGzmgCt?= =?iso-8859-1?q?wj4fHTX9jiaO6FDL0E9iNNsILTMUsWHzMfEtffmEVP0CaGPfozcEfJl4ErH6?= =?iso-8859-1?q?uP/cpBZtFkFrZmqItJhvCoJg=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV1PR03MB10456.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?o8RwojEdQzIjXEEdFcJkjiq?= =?iso-8859-1?q?WqurHhXjR73BW0o4HfkiDMNczDjtzhCcuTMYS+28eagkDHn1zJ5ld4bYjwya?= =?iso-8859-1?q?tZp8LkqWVW4qP5xW/h5xVMxXDu17pT03MIk8WiX2E73GqkkX3K0eWGhFTDij?= =?iso-8859-1?q?doF3Vjp7miAjVHfSpNr91u2ff/ODmtqT5hsP3pCq9CX6STHghzH2lN9w5eN4?= =?iso-8859-1?q?WofFP0usDH76fjCxYvh+PmOrfBPgGr1towqZ65WdrmDXO1KWC1fIYJsj6+eq?= =?iso-8859-1?q?1mxy74jIH5uMON6p8p9FN6Jt8bPSPtrWiSX9s2Q1pum+mxwDuNhbZNN5r7Mf?= =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7WLjlDwHdlrLoVdvxT6DwjHh7ha7kKYNKqNJlDV2T9Njl?= =?iso-8859-1?q?8H+Jtdux+IOCAC1DrLpXoYYoRpjc/dQfa+B5Fb6OJgHFwJHGySzI6aL5A4yl?= =?iso-8859-1?q?OXGfE8e+pbkSF64yDdNJJm5sXGSi6QRQO1kc/FBGk1UeSnAMq0rM2DOuK28L?= =?iso-8859-1?q?btjyfcGTZ4UVS3oIpvKepYVvlx8PHoDv4e2zGdc10hiNiu2nLxUtiESmHSZt?= =?iso-8859-1?q?74WpUlrD4FeIDyXWX79yAxKlrHQLE4hlkwSW0eNwzNnUmY9O1pjLnz6XpjYN?= =?iso-8859-1?q?xKmJp7+G/nbjBl/rQqXlXL5q6ZSqopviCRUvhXwpl2GDOvFoI4C+klLl1lpC?= =?iso-8859-1?q?b9spEfAQrVHMsTNyldcZxnsMoAO6heWwI2D5F8qARdc3UAkXBesPQE1WrIgt?= =?iso-8859-1?q?UGmaopq4NcDV/v/jfUaDllUakVFkjdQY5kV9IiA=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: GV1PR03MB10456.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d3cf442-6c55-4133-67eb-08dd101806b7 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2024 01:49:10.3550 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Q7+/6pc6IkzcQJEu+rBrYKgs/3DsLZwS7rv+LadTdSW0yo+AQw7TGXAz0k9nL0W0RRnlQ9+WJY7UyWPpCYWdx2/K5LPNy71t1VBlFVHYlnQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR03MB8923 This variable can be used in cases when we need to remove certain CFLAGS for particular object file. One such case is -mgeneral-regs-only flags that should be omitted when we are building an object file that uses not only general registers. Signed-off-by: Volodymyr Babchuk --- xen/Rules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/Rules.mk b/xen/Rules.mk index d759cccee3..478318537f 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -179,7 +179,7 @@ cpp_flags = $(filter-out -Wa$(comma)% -flto,$(1)) # Calculation of flags, first the generic flags, then the arch specific flags, # and last the flags modified for a target or a directory. -c_flags = -MMD -MP -MF $(depfile) $(XEN_CFLAGS) +c_flags = -MMD -MP -MF $(depfile) $(filter-out $(CFLAGS_REMOVE),$(XEN_CFLAGS)) a_flags = -MMD -MP -MF $(depfile) $(XEN_AFLAGS) include $(srctree)/arch/$(SRCARCH)/Rules.mk