From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 40902740034 for ; Sat, 18 Nov 2023 04:02:49 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=DTrDJDzKK/yhOhb5sud/6eVNVygrWwynjzqG5cmL67E=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1700280167; v=1; b=R7dkxT+T/6XZnBwnhtUcYmTyhh9yOJIBaZQiWRSSD5PeHhaHypv9vAjKY7uC/TneDH0yfn+d vOcFs9TiZNgULxnhVu3QRSwvpp2kHftyzQg+pAt/5aVmiAw7vlBq9yEaWLZUNqJYcCfWR4RFrnb IfTr7PajUBavB0MmUmnvaV2I= X-Received: by 127.0.0.2 with SMTP id XcOqYY7687511xknRnVTXUsJ; Fri, 17 Nov 2023 20:02:47 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web11.3040.1700280165992660310 for ; Fri, 17 Nov 2023 20:02:46 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10897"; a="394253490" X-IronPort-AV: E=Sophos;i="6.04,207,1695711600"; d="scan'208";a="394253490" X-Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2023 20:02:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10897"; a="909596175" X-IronPort-AV: E=Sophos;i="6.04,207,1695711600"; d="scan'208";a="909596175" X-Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga001.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 17 Nov 2023 20:02:44 -0800 X-Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Fri, 17 Nov 2023 20:02:44 -0800 X-Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Fri, 17 Nov 2023 20:02:44 -0800 X-Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.101) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Fri, 17 Nov 2023 20:02:44 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AL7R8aZphbJnCR8dhFKOfh1WvkAjdViZxgo4mUT0hFLObf2izIKUE43MnfuM0JRaqvy+xkvY5x36SF0eLez2b9HhtQrO46swGkd5lf5zahdh40O2CX1rIeqvzpu/NczukUfOZzp+LPHsDtnEUCOvQGBsu9Lobl4+S4l7owxhS+Nsu8bOnS6ZJP2hsVLyxKHtFGYzN0O3a/q5KFc2o4dbX0qgHvA9IbNvT2UoHyR3EVzsQvGqtvyGqWJ7bOssNrkrv+iCgMsJPmmbistX0D64esBALYQix8dFT5RMw95tIx/FAzO7BIegHmO2o5r3+LiVxKNBdGWfsSU6/t4GB8547A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=mSkW2qJbeMZgIq6fUP6FIXAB0a/5uHRnwVjJjDLobRQ=; b=Pe7VLf+ZMtu6jry1HzGd1h5aYGj3CaPP3vwhAG1woPGsDIT6NYwYZpAO7ba40ZypswtFc/+0sv+m+Y+jNVFfj3r0Jnbo+fFXY9y4G9VM2rqNDPiSz8/WCZotrwKBTDxnuvRAx34SJImbTCb2/gGJ7LKuAhzuMrAy5Pwht/23XtaMLemKeMhcUmtnwLmiCF9EFHoIPnfcrjN9yzynpKKmNCP9/69GxiPrBsOwrBbUJixukk3eYF+xf6LxkWYbvz7hc9NCqtTHgJXTrHP575ELK07vWh2/1nm3q73mgXbStWRYqbjktaBaJhGgHjzOOHvSTz4C0ZiCt67oFcmL9pLT6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none X-Received: from MW4PR11MB5821.namprd11.prod.outlook.com (2603:10b6:303:184::5) by IA1PR11MB8175.namprd11.prod.outlook.com (2603:10b6:208:44f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.23; Sat, 18 Nov 2023 04:02:41 +0000 X-Received: from MW4PR11MB5821.namprd11.prod.outlook.com ([fe80::ced7:2db7:4cae:ab0]) by MW4PR11MB5821.namprd11.prod.outlook.com ([fe80::ced7:2db7:4cae:ab0%6]) with mapi id 15.20.7002.019; Sat, 18 Nov 2023 04:02:41 +0000 From: "Nate DeSimone" To: "devel@edk2.groups.io" , "Desimone, Nathaniel L" CC: "Chiu, Chasel" , Isaac Oram , "Gao, Liming" , "Dong, Eric" Subject: Re: [edk2-devel] [PATCH v1] MinPlatformPkg: If BaseTools doesn't build, try a clean build Thread-Topic: [edk2-devel] [PATCH v1] MinPlatformPkg: If BaseTools doesn't build, try a clean build Thread-Index: AQHZ8CH8NX0rRUGICES7ijD2YX8JnLB/x84Q Date: Sat, 18 Nov 2023 04:02:40 +0000 Message-ID: References: <17884C66565E22C5.16687@groups.io> In-Reply-To: <17884C66565E22C5.16687@groups.io> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW4PR11MB5821:EE_|IA1PR11MB8175:EE_ x-ms-office365-filtering-correlation-id: f6d446bd-9035-44c5-154a-08dbe7eb35df x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: IX9UZL3fSoJaGgH2o2ilQj+7JIrgcZfj+g2gK7SHdbc5AT67cjsw3tObwrZj2JQodhDFBhg8gLZiUtvHOCBV6IOyChqmAIkEee4lB7AKOwA5gRuBuff6u+vorha/FWCnHZ1H8CU52Cs1y77LByB8UKEdWTaO7X8G55lN3hqcNTXslq57R1S7o/jHKeEQsVEWfhjFzkUWXTPT9niGfw81bcjoo6xEIQVJVRzBF7nxekS8lXwEV204U6Bubeh7sKi/P5tJhjzweO3m5UU3ctwsRFiFC784+VlARpMc3bEcVAdbWqaPpthMBDCSy83P6afgcAWFr3GmCaKS2QhSYMRIuY5usxOukXT/2SmyJYOndO7pNF8KUk0Xd1l0ytWEIaSS71mgCXk/QOBBx+xFmvF7fD79l2dF+Thz6CxROChATUI/7nufAm4Y9TCEFF+XEPJjGZEj7vQw2uKtHp15Qa2d68E+AIJyEAMHeEKjMBhzXoD9jNTF1FS5kO2HzbRhEIS8e7koiWf0MdOeDWszzdY4DDrmD/pI4z/LOeHO2PeK1+fZQuEIl86i8LoCWCPiE71uC0zfSMXMq/KE+CqpcnfLnhFlXeZ1FafZfvPVj2z6seE6xiop0Er/rKBkPuHyBRjXwVA9p+rDaxoyfPOlrPoo5w== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messag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x0kylNuHN7I0FTsK8cJd8KSZ8dfReld?= =?us-ascii?Q?HtmphLooB9fv6rw3NQeZoM1e50llUEA7DsiXgaItu3T9BZGNUCq3IkVIIAx2?= =?us-ascii?Q?uK66Z9H6jwAtRA3hUffTaynd6VcRXKN5PohfPpVX967vDb8ON+1zwbA+ZtNs?= =?us-ascii?Q?xX/ddQ+pl553+WUn1vSMsz5OEEx+zRqWh/YEfB0QaAH/9gI0Ybyw6zB+eRLh?= =?us-ascii?Q?ZVbiuTO22wZ1j4vtS4+kpbnLwAXg8t5qzDyov5ofFc4NIQ3ra8RLh/JLfmds?= =?us-ascii?Q?zNxfIFUknaMcOG8tghY4EPxqQFkBAQaxp+cAzd2lsuQJlykdUWzOlyECvaGG?= =?us-ascii?Q?7YYikaL31yUzHSsIqYtOO97R1rPA7BCK7vvUd9Q6PW0AlyAs2BoLyqHh4JMM?= =?us-ascii?Q?UMzuKaCqpZ7zvpSpT8SUIT6AF4ML+TgZz4nbrgw8ujmBEc9KK6BizWxVhnFS?= =?us-ascii?Q?VVOiO6lKephIJ+XIghkVV3jGMnxkpzSgGtPnFk7GbbqZMlR7rm0AvC9IvjQx?= =?us-ascii?Q?9qF7BHMvVQVUpdsdJt6L9FW1QVaEeawSWPJKuxkK5f/83ePZE88r1NrSahYs?= =?us-ascii?Q?J9BfhXdVlDOQD7zYpy134JwxhHBdDWEGNT1b4d3a57xHIK1dDGOB0xS+VGXr?= =?us-ascii?Q?lJOOyqPPTdjTZl2+Gr8H4fPA6RKGNHqpxuQ+M8rEgRPpF4FEOMNST8CmpFL0?= =?us-ascii?Q?JVScmx4TOWo6VofvqTEbeJACm35PFBwzcjsU3dPkpVdI98CF5IwCaTuWheJV?= =?us-ascii?Q?Ag=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5821.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f6d446bd-9035-44c5-154a-08dbe7eb35df X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Nov 2023 04:02:40.9748 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: zs5wsKAOZC/vWtRTLRJWHQlPKEqF2EKBVeBX+W529H867ZSq9ZyMoM1OgihHl2VzUwaEHd4ZQYYGea5+lmZZ8LMJ0OdAUEbPmFNuWPcQkAM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB8175 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,nathaniel.l.desimone@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: KcYi6RwTUhJVvoeYWFapnwAZx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=R7dkxT+T; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") Pushed as 787154b -----Original Message----- From: devel@edk2.groups.io On Behalf Of Nate DeSimon= e Sent: Monday, September 25, 2023 5:47 PM To: devel@edk2.groups.io Cc: Chiu, Chasel ; Isaac Oram ; Gao, Liming ; Dong, Eric Subject: [edk2-devel] [PATCH v1] MinPlatformPkg: If BaseTools doesn't build= , try a clean build Cc: Chasel Chiu Cc: Isaac Oram Cc: Liming Gao Cc: Eric Dong Signed-off-by: Nate DeSimone --- Platform/Intel/build_bios.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Platform/Intel/build_bios.py b/Platform/Intel/build_bios.py in= dex 9c95cfff76..b396017c8c 100755 --- a/Platform/Intel/build_bios.py +++ b/Platform/Intel/build_bios.py @@ -207,7 +207,22 @@ def pre_build(build_config, build_type=3D"DEBUG", sile= nt=3DFalse, toolchain=3DNone): =20 _, _, result, return_code =3D execute_script(command, config, shell=3D= shell) if return_code !=3D 0: - build_failed(config) + # + # If the BaseTools build fails, then run a clean build and retry + # + clean_command =3D ["nmake", "-f", + os.path.join(config["BASE_TOOLS_PATH"], "Makefile= "), + "clean"] + if os.name =3D=3D "posix": + clean_command =3D ["make", "-C", + os.path.join(config["BASE_TOOLS_PATH"]), "cle= an"] + _, _, result, return_code =3D execute_script(clean_command, config= , + shell=3Dshell) + if return_code !=3D 0: + build_failed(config) + _, _, result, return_code =3D execute_script(command, config, shel= l=3Dshell) + if return_code !=3D 0: + build_failed(config) =20 # # build platform silicon tools -- 2.39.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111421): https://edk2.groups.io/g/devel/message/111421 Mute This Topic: https://groups.io/mt/101587227/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-