From nobody Sat May 4 09:25:02 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+66996+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+66996+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1604498906; cv=none; d=zohomail.com; s=zohoarc; b=Jk+vlFYFjzC9xmAYqvwowLOAPOveytGBuuI2a1pHQTh8ug+3QNzkeCREnlFsTUd7qG6ziMcC0+XUJEjKuw7IlaI2IursokliNFLJAbn9k8xXAQcFhl7nYNOldL/0W+UDCjCz7LmTHecVicyzxBk5n98w4rA9/fKLughEP/x1vjA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604498906; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=STPpLNE3eOP1gNbqX65aPIumNzfRd5EdZ1ju+CHIvgo=; b=OttPx5qtuAu7zBthjHH+1zE12haniaFX0y0K3g29PndzweIwu34T133gxvgWFgoAcA81J4MRo0mAVesCSviGZBk+gfvdDMG0TmdsSWDNgHUxc0GQxKdBfipu5p8derWasrcl32SCca6s8ptIVB8D+duvH2KtD/Vlw/VPPtB17S8= 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+66996+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1604498906484510.46312468998394; Wed, 4 Nov 2020 06:08:26 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id BREzYY1788612xJd34IiUPWu; Wed, 04 Nov 2020 06:08:25 -0800 X-Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web12.10109.1604476387747895561 for ; Tue, 03 Nov 2020 23:53:08 -0800 IronPort-SDR: biIoaLAeR+V0nDCWule0z2Fllb2UGkRgHtLUZxq5mKINeG3GGsMN0woO0my2pJW5CfTfDkSxBL bNdBw0O9eikQ== X-IronPort-AV: E=McAfee;i="6000,8403,9794"; a="230805802" X-IronPort-AV: E=Sophos;i="5.77,450,1596524400"; d="scan'208";a="230805802" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2020 23:53:06 -0800 IronPort-SDR: Q+wven0AO7oMCvPBjnrtV3Al6sZHjg+GjGrz33mlFVBfVn9S2ziTL/OXvIZdgjtldOgUrrKTVJ AZbgz0iAkJFA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,450,1596524400"; d="scan'208";a="527474086" X-Received: from bob-desktop.ccr.corp.intel.com ([10.239.49.38]) by fmsmga006.fm.intel.com with ESMTP; 03 Nov 2020 23:53:05 -0800 From: mliang2x To: devel@edk2.groups.io Cc: Mingyue Liang , Bob Feng , Liming Gao , Yuwei Chen Subject: [edk2-devel] [PATCH] BaseTools: Catch the exception in build.py. Date: Wed, 4 Nov 2020 15:53:04 +0800 Message-Id: <20201104075304.382-1-mingyuex.liang@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,mingyuex.liang@intel.com X-Gm-Message-State: P01eDRDVP9820wNgYXi746qsx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1604498905; bh=4Sh1yVpsZe8h47cIy8uTrTQkvDO57oV9EHt/E7U5jjg=; h=Cc:Date:From:Reply-To:Subject:To; b=JoFEYSwXJuzuLEzD8xImJJpeX+TNV+SU/go+NS5dY/z0E0w7LPGYUD7Vt5CSkT/i3// 96MD0uwZiLjagC9TdU3c9jsEatdCAgTnpFs2reaC3Rq2EPs2oZ/haFLea0GyizRZSvsqO RLWFRwvZSe0Q7ELdvn+mvJYAOkGoy9mGrYU= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Pyth= on/build/build.py index 1ab1e60a64..49165ea355 100755 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -62,6 +62,7 @@ from AutoGen.ModuleAutoGenHelper import WorkSpaceInfo, Pl= atformInfo from GenFds.FdfParser import FdfParser from AutoGen.IncludesAutoGen import IncludesAutoGen from GenFds.GenFds import resetFdsGlobalVariable +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.28.0.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 (#66996): https://edk2.groups.io/g/devel/message/66996 Mute This Topic: https://groups.io/mt/78029052/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-