From nobody Sun May 12 18:49:25 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+87135+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+87135+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1646124514; cv=none; d=zohomail.com; s=zohoarc; b=SV8F+eQr47SN8s15rqLV6jVDoae+06526MBVc/mB8LPqL+gu6utk7NyaeXVscSeWoBcQforCr8mH510jNmDY3+VDuqDKoCxyICGNExG2UhL5pGdVdGeexkRxTQ5T08O/tCLchbVL8RERJGOUjjmHzK6z9YgB/u6gt64Y1B1lT9M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1646124514; 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=e7TFyYtxuzx+Gc31FpUBFqMko8Ba9ZRUgIFZpWgfRVg=; b=cWNFDJfn30i+8zLB2RfyzCUl2IQg2tmbyXpfunfTzC0y9+Y4Yyeu6tWMt06Kwu3jvcVzrUSZwqfM4KdMpNLDt0EKLX/77kviiXLKYMQEcX4iZ/E9y04eh+XolS+hgobQ6IMzdQrKrkw9N586aHwG5P+s7/0T4tgu6YyOsC2OVUc= 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+87135+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 1646124514855963.7200677858215; Tue, 1 Mar 2022 00:48:34 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id d6oZYY1788612xBBxlJiGOvh; Tue, 01 Mar 2022 00:48:34 -0800 X-Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web08.6083.1646124513862334541 for ; Tue, 01 Mar 2022 00:48:34 -0800 X-IronPort-AV: E=McAfee;i="6200,9189,10272"; a="233060965" X-IronPort-AV: E=Sophos;i="5.90,145,1643702400"; d="scan'208";a="233060965" X-Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 00:48:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,145,1643702400"; d="scan'208";a="550625855" X-Received: from yuweipc.ccr.corp.intel.com ([10.239.158.34]) by orsmga008.jf.intel.com with ESMTP; 01 Mar 2022 00:48:31 -0800 From: "Yuwei Chen" To: devel@edk2.groups.io Cc: MingYue Liang , Bob Feng , Liming Gao Subject: [edk2-devel] [PATCH] BaseTools: Catch the exception in build.py. Date: Tue, 1 Mar 2022 16:48:26 +0800 Message-Id: <20220301084826.1859-1-yuwei.chen@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,yuwei.chen@intel.com X-Gm-Message-State: NrnaRrxprxkIbkcImKPnwNByx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1646124514; bh=GqBwK0//KP7dJ9kTtBIlmnvNvZAS2equtL3ZOcefVuY=; h=Cc:Date:From:Reply-To:Subject:To; b=G3TkYRZGFq2Lie4V367Ii3x2yL2QHzkrtH8sGy9YUnrk3EY7wMp9wo7OtXRmlfpaXBe Y2neWKVv1l5y/If+vccL0WKxpkJgrTL9ujXSSuXRzzlGJsGHB5syVeSYSn7ZvAzG0/+VZ HcKwOXgFUgsjk4jlyXRuhLGfT0sRnBGmxnI= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1646124516280100004 Content-Type: text/plain; charset="utf-8" From: MingYue Liang REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2988 In FDF file, if INF key word is wrongly written as INT, build tool will report the execption. Build tool should report the error message. build.py In order to capture and handle the exception of fdfparser, the user-defined exception class should be imported. Signed-off-by: Mingyue Liang Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen --- BaseTools/Source/Python/build/build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Pyth= on/build/build.py index 07187c0361..0c6f801b33 100755 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -63,6 +63,8 @@ from GenFds.FdfParser import FdfParser from AutoGen.IncludesAutoGen import IncludesAutoGen from GenFds.GenFds import resetFdsGlobalVariable from AutoGen.AutoGen import CalculatePriorityValue +from GenFds.FdfParser import Warning + =20 ## standard targets of build command gSupportedTarget =3D ['all', 'genc', 'genmake', 'modules', 'libraries', 'f= ds', 'clean', 'cleanall', 'cleanlib', 'run'] --=20 2.26.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 (#87135): https://edk2.groups.io/g/devel/message/87135 Mute This Topic: https://groups.io/mt/89471884/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-