From nobody Sun May 5 02:27:50 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+66994+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+66994+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1604498904; cv=none; d=zohomail.com; s=zohoarc; b=JtjqOV0N9wCHb7MF5tMo7+SAM71LIkpY6ZZWTNPllUJzok89uLqZcaVxjnEgXA3s0zAfPxFayVFwYWDZQiUG18OaA4cuS9DSQ8RupJXJgyE4B7LHbs3tFMeAd/M7A3ph4C6vJWxW38kTR5tMvxTGdYgFVZJiWN8c+MpAx47PHjA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604498904; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=73ovWlTyf2XGKTIgeigFEnb8DpqKdVlGEclmGMfMeVE=; b=GjvxlZ2zfM8FqQqaNmDRHi+8tC9H2XLuGkUU3LiwNH526YTlYCp8F6EKkGerUh5NJ+knO7pT4aG2GtI5G8a5yvO90xd1fz/GQsfLaGdLhwgk1x7Bk8AdOkIrZTPjObdgln/JMZAEh2fLktg9HWzcSOf6Z4yZSN8Z5uelaNPKHTc= 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+66994+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 1604498904637579.1483590972989; Wed, 4 Nov 2020 06:08:24 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 69K2YY1788612xyIqiWm9wCr; Wed, 04 Nov 2020 06:08:23 -0800 X-Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web08.9505.1604471532295707111 for ; Tue, 03 Nov 2020 22:32:12 -0800 IronPort-SDR: ylLTrxG3Bwdtgk1dU0026lodd9YUvOakTk03xDwGMEtsZcX11rqnsAPzZi8K4y6SOOeQCJ0nzv lENCYX5ieuEQ== X-IronPort-AV: E=McAfee;i="6000,8403,9794"; a="187031413" X-IronPort-AV: E=Sophos;i="5.77,450,1596524400"; d="scan'208";a="187031413" 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 fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2020 22:32:10 -0800 IronPort-SDR: kCddjpt9QsHl70hcsJvg4obiV/p04SPu5mcBO3nJUs51fZCGpxaON6CJ4J8vG3hIRZBmR8+ee4 wlstViDRC0Ng== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,450,1596524400"; d="scan'208";a="527455482" X-Received: from bob-desktop.ccr.corp.intel.com ([10.239.49.38]) by fmsmga006.fm.intel.com with ESMTP; 03 Nov 2020 22:32:09 -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 14:32:08 +0800 Message-Id: <20201104063208.363-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: zupzgkTMyyDxCbVpoiPjWqH5x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1604498903; bh=3XjsMywohKcKtmWjalIHTqvtzenjFSU1jg1QyLQqgWw=; h=Cc:Date:From:Reply-To:Subject:To; b=wBLemYtLfYn1mFHZtZSnm0k7jXuFH8M+R9wCyylTMOL6mgxC3Q1MlDAqMTevA/pHqwN BOcoA/8BtxxLYBHNV9mEOghhUXup1TX/VCkBSK/xbIu7DxC3Vy5TDivaa0jIFxA4itbpo vBdq9Zr6MgEyEKRA1kaPBQzXH2HGHBp2wUw= 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 (#66994): https://edk2.groups.io/g/devel/message/66994 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-