From nobody Fri May 17 11:28:47 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+109055+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+109055+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1695689262; cv=none; d=zohomail.com; s=zohoarc; b=GdtjDdKh7h3vhVOd/ilWbAQb0mZ2zrYsmk4Gzt35MqmEpOytAa/Ueh+rLmH/RSmJO78KdvbEDJACrlL9dMxmsxOYHVIZNhhHzQPEbT3AgcRBW43b+RpVwAaj971xrAe5Vp3XoIlF9sb9yYf5L9IraET0ifek5q4SzGyz3cWKJ9I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1695689262; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=FrYf7l1YC0H0tu6Fb6g0KwULXSrwpBn26YhxaAcETL0=; b=dHcqSMsaFK96ru6QDGofETzaaXwwuGkKrXpIl/q+gC+ev3WgJgM7L5v/nRJ/yhvmgAuQuPaYdPXDPld3BHtAO1zgbJLM5XRAdNdrT+Y+tsdRbRSyf4erftWePVhkF7hd7MgOUCdGK+htTbsv5dC2dRQ+5KqKwdx/jCni8AWedkE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+109055+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1695689262855892.4525451447195; Mon, 25 Sep 2023 17:47:42 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=rWb9TtJHqVsjhEUCn+uS6olPbw91wrC3ka/ER76lim4=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1695689262; v=1; b=S7AeNEVaItuU8eZn+T7xwZ2o8GQpouQaq4OUy7HrTMVFVUZaEwRMUJiIB2IbFwsfeFsixEnT pQ/SqDGVoSeQ/sitFsZFnWsR10oye/Va+3ag1YOUv1xUbp8APK4AXNHUF7NbCpOU0P04MNixRja OLtogrY4JqdV3G3K/xsDYZJk= X-Received: by 127.0.0.2 with SMTP id Y7E4YY1788612xH2GFLl244h; Mon, 25 Sep 2023 17:47:42 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web10.8609.1695689261442538894 for ; Mon, 25 Sep 2023 17:47:42 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="384225471" X-IronPort-AV: E=Sophos;i="6.03,176,1694761200"; d="scan'208";a="384225471" X-Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2023 17:47:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="1079495283" X-IronPort-AV: E=Sophos;i="6.03,176,1694761200"; d="scan'208";a="1079495283" X-Received: from nldesimo-desk.amr.corp.intel.com ([10.241.240.72]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2023 17:47:40 -0700 From: "Nate DeSimone" To: devel@edk2.groups.io Cc: Chasel Chiu , Isaac Oram , Liming Gao , Eric Dong Subject: [edk2-devel] [PATCH v1] MinPlatformPkg: If BaseTools doesn't build, try a clean build Date: Mon, 25 Sep 2023 17:47:19 -0700 Message-Id: <20230926004719.2706-1-nathaniel.l.desimone@intel.com> MIME-Version: 1.0 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: 4oMvapjv4XsUv5y9h2yfunvXx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1695689263144100001 Content-Type: text/plain; charset="utf-8" Cc: Chasel Chiu Cc: Isaac Oram Cc: Liming Gao Cc: Eric Dong Signed-off-by: Nate DeSimone Reviewed-by: Chasel Chiu --- 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 index 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 --=20 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 (#109055): https://edk2.groups.io/g/devel/message/109055 Mute This Topic: https://groups.io/mt/101587227/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-