From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web11.30627.1615167899816924456 for ; Sun, 07 Mar 2021 17:44:59 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=GLzmLN6J; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: bob.c.feng@intel.com) IronPort-SDR: cSa6e1utCP/UQvvL3+TA8DfHZUEjHEO5KZyaR1ZE6jDeYiZhx+Ws3qOc8i4bKai2udjJur37Q8 BBeYfrDO4l/Q== X-IronPort-AV: E=McAfee;i="6000,8403,9916"; a="187308108" X-IronPort-AV: E=Sophos;i="5.81,231,1610438400"; d="scan'208";a="187308108" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2021 17:44:58 -0800 IronPort-SDR: cnyIHO2niM1RPbhDo6c5Jp7PGdwZyy1S+bbAcM7+ezDWzoNnq8i2iNQ+mRl+w8IeOnvz1JFyJ4 3yct8RJMytAw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,231,1610438400"; d="scan'208";a="402633381" Received: from orsmsx604.amr.corp.intel.com ([10.22.229.17]) by fmsmga008.fm.intel.com with ESMTP; 07 Mar 2021 17:44:58 -0800 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Sun, 7 Mar 2021 17:44:57 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2 via Frontend Transport; Sun, 7 Mar 2021 17:44:57 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.175) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Sun, 7 Mar 2021 17:44:57 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JmyoxIWMe5uWx9qsnKHZSxbSHdOk7Iih+cP17t5kYQJTu3k3Abw6dB8DzQ7vkUV2YLmlKuXeyp65tFOxD/XsKiHirw2z11+uyn21lybx9a5jPXOUDVUH8kC1ABUNoz2kjvBBRKmbdmpEiXjW/6OcPt7aGgUWbq++rMIBa4z+3MDvxSZeXdoMHglVjvsVzG350P3x/y50LL1cFtpUMcmtg0KfGIF3B05r7pwzWPgKrw0V3CgDf3gLBR7JMVUhMVjwkwjHbNurWClSQigKLgnJMSN2BIsky5XuucvuXC2maLRt5bBL91ziUVV1MBZHDYL+KdcHYF4SIh6S2hek3k/wPA== 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-SenderADCheck; bh=szhCIsrU3gyGaBksY4v3JKoD03p1FsgKBNPt1wmBi/M=; b=g1IItsfM6Hcm04zqibrPBo2tsUAxnPDps7CUzJ/+DxuE4YTFPKT/0m31ZCg3sdSMZbPiY9zbt5tGekjGoA/qKFUGEduktyUZHnolE9myEmZ/r/PRjLfyOGg95+vsSexNZIg636A5STHlXiziQW8cvm12oHcpc8rkDRv1vcozcjVppvFmvQbvF+O13bOhzRkd+2UmIC6+dDn68xW5QlOBF3sdaOh2icCZqNWq2V1gIBqqkrfvr6Xnk2c2HCv70t0fAa2aU6qNKyfr77ZSX/V0wZPlwd3hcUtN/BfOhdjTFl46Kd9m+zYDv0Dii3HWkX6ocFYr4KDwBxXg/Xv6yLtw3w== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=szhCIsrU3gyGaBksY4v3JKoD03p1FsgKBNPt1wmBi/M=; b=GLzmLN6JrYuI1ZLh1sIVLPc7rEGhgRU8Nhk+eyMve3sh8IwMwsEHsvV1ILyzQcdIgHU6Z0jjt43bmUPum6ZA6v5qlj1aFAW6AMnZEunhlT6RpLdHzjKuacfZAc6zwIchCjtY0qA1a9IOetQQF3ve9VdB28eGU1ELtDwE4X/+SAs= Received: from DM6PR11MB4073.namprd11.prod.outlook.com (2603:10b6:5:19f::22) by DM6PR11MB4393.namprd11.prod.outlook.com (2603:10b6:5:206::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.28; Mon, 8 Mar 2021 01:44:56 +0000 Received: from DM6PR11MB4073.namprd11.prod.outlook.com ([fe80::845:55b:f6b3:aa0a]) by DM6PR11MB4073.namprd11.prod.outlook.com ([fe80::845:55b:f6b3:aa0a%6]) with mapi id 15.20.3890.038; Mon, 8 Mar 2021 01:44:56 +0000 From: "Bob Feng" To: "devel@edk2.groups.io" , "Chen, Christine" CC: Liming Gao Subject: Re: [edk2-devel] [PATCH 1/1] BaseTools: Modify struct parser for StructPcd Thread-Topic: [edk2-devel] [PATCH 1/1] BaseTools: Modify struct parser for StructPcd Thread-Index: AQHXD98XqqnibCTe7U2WwKgW0MApgKp5WXcg Date: Mon, 8 Mar 2021 01:44:56 +0000 Message-ID: References: <20210303034113.142-1-yuwei.chen@intel.com> In-Reply-To: <20210303034113.142-1-yuwei.chen@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.37] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f34935e4-8c96-4ccb-dad1-08d8e1d3c71b x-ms-traffictypediagnostic: DM6PR11MB4393: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2512; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: lUe9dPnGH3cVWOTRy6QOjyRN86zBhToAi7lh5JB0jBnsAiIlp19ppxeHAXf2WTz2JMuH82l/Hdf0OumfFk8hyFSgB9aM9oixrlpBuylIQqnzsONd9HihoMSLjdnOWVWvckqk5/0ljqkw7GeRLBleFefikw2T4p7pxJk8UFVVBEiKH/qinLAyyLM6j56KKYAUDilm1uoDvrSIM5WxbO24S7+7KmAXIgtSosNB7SxSPU1GfN4REtosl8WKOl8jRVqfKVjWpIZRrxlcc3Dw89TEtZNJAOCZOviSFzPqI+8EPyb8QpuUBfRN74IajYWKMgPsA/H0e/qv1xbrEde/26P5t9KvwwgPVObcQpNGPi5GE4xrRCgR7iVmiS9oCZmYzWBIhCry6KHKO66ZSP2B8oApgffXLfJbWeKviY5Et4dc8wUJB+Lu+76hxEo0ncjPBySzuTJN/KNFiYJFWXjg29cCVmadDiynS1e9o4C67fb050egrwNtrRwiQY1grkimK3l7UDV1Jsg5GY8O/IDSY6MFMxPhoKWMWkzo3n0uOO2CPD+/vc7XMc7RAUmHjF/m5vIdr8vRNkWAPqL5L+3MKWrYk1jbQYZw1FKaOy1GdjKrHCs= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB4073.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(396003)(39860400002)(136003)(376002)(346002)(366004)(33656002)(8676002)(53546011)(6636002)(26005)(83380400001)(316002)(110136005)(2906002)(6506007)(7696005)(4326008)(86362001)(71200400001)(5660300002)(52536014)(64756008)(66946007)(66556008)(76116006)(966005)(478600001)(8936002)(186003)(55016002)(66446008)(9686003)(66476007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?+9O2wcQD68MuOBz4ftj2foh+n8ifUx3dYmvACENggKSYcYcVA8WDoV45ZixM?= =?us-ascii?Q?MzTwtro7JWPX0zJ3nxe9vifs6qiCwX8Q5zLEpXeOR2vFp5VdEpgISocAQL4i?= =?us-ascii?Q?YaLhR4DV7MWs/nKCdz4LdijoYo/bBm5S48xIi9V4JNfbrZCC0ezJUCed5AMb?= =?us-ascii?Q?LIWOvnpHhOjGy0xNcPycfwfSY3qw394532/NafnXK77+GWjGWnjG5DstF3h7?= =?us-ascii?Q?xTxCyAVPcEPDZKSB5wvlXG2/yxiZUGXYI274mjfEzhOtb03P9I6pL8lFgHj0?= =?us-ascii?Q?wdF+nYcdmf5Q8h6+ExPnC352D9UqA63nqCQOeG0CPPOI0lE90wkfnXEDIEPu?= =?us-ascii?Q?JLH/0msL8WS3sEjhEyL4kOsOgA+v8uZg/Ii2UZpOze7llfclyCi6bxwNmC63?= =?us-ascii?Q?QZXlmLwUq2aOgLc3BSo+vnpqgbFxHpbNSmqrna4dYo/57mLhMmMrEpTPzHEe?= =?us-ascii?Q?1Lsm6nHKmVJF+HYCmHztgi0PWhmhZFxgCjzhcaTLydXqaFscHsznvGe+is2k?= =?us-ascii?Q?knWk4xur++kWA17ecOZI+fu6doU9zs7OOsUxa0+nyYuBrX2LGINnmgEzAV9K?= =?us-ascii?Q?Qfmv+81XqZC8+/8eIj2aDcnQdkXDXXtJMiTY9m59LUBfUOJ092axcGuWJkwU?= =?us-ascii?Q?NsRKFTUMl15ofWhvGbth+mqrde7JW63HecyfsJUzez7w4hz1pWOrOTYLpajI?= =?us-ascii?Q?aOwnFiKp2oiskCl7ke8dPrEo5/vSBIc+QgnQsVv9ZZyPbLE6S/hSz1hFMocd?= =?us-ascii?Q?3lxvu5Cx0uXACdIxAiu6IHyT570exQ2TfNC8y1bJ1tKIpcGYxRoOz6gkAOx3?= =?us-ascii?Q?0pYKVXmJqa8clIC86VhRlZRu4IRgiHMQlviG4IrQXcGMw3jsiz6Z5wFFHP7J?= =?us-ascii?Q?qC73pH6ZtfsjQMJuThQQbSoadA2UfqrNtVjqxbDl4dKZP2zmZMl7859TIsVa?= =?us-ascii?Q?WptKMUjRhiYOikEkz4cSRlLSOxly0aZe3ScKpltFDug+NZ/qtjoLxU3d5ese?= =?us-ascii?Q?3jZIzzI52qordyjfAJ28+KwQr4Dw3sQVrurwKIYkXZVBBYhK5Bn7im5PH5wG?= =?us-ascii?Q?bZDqatD4G2lNRH5Ak9/urChyroJjK2eBdBto/yWHemTUHY4BTt2ZtEl7kMJJ?= =?us-ascii?Q?phYP1ZUJFU2TIP03pA5aOywrSt0XmWsN5tiMGCxDuJHjTmqZ8QlP59zsI26S?= =?us-ascii?Q?M1HFwbXK6e6PDNyI9DmhNRMIGS/xs4l+nzAWD0fyAEXIZoY1doYedfe3amIL?= =?us-ascii?Q?6ZbQJf72w1iEpXFhelxlbvUrRbDnn6XsTz36EzStSM3M4iN4+XJQ663XK135?= =?us-ascii?Q?r/YkYITYsUg5YXOroUO7QKOL?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4073.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f34935e4-8c96-4ccb-dad1-08d8e1d3c71b X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2021 01:44:56.6616 (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: 7Mg5+LMslh9BV/IXSWeTaRnDuwXbyjB/trho1ngVX8hKqsNjUmzL3t/pCv3yibdRjCmnbZNAp9kB6tpuByBJCw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4393 Return-Path: bob.c.feng@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Bob Feng -----Original Message----- From: devel@edk2.groups.io On Behalf Of Yuwei Chen Sent: Wednesday, March 3, 2021 11:41 AM To: devel@edk2.groups.io Cc: Feng, Bob C ; Liming Gao Subject: [edk2-devel] [PATCH 1/1] BaseTools: Modify struct parser for Stru= ctPcd Currently the struct parser for StructPcd Generation does not fliter the t= ypes such as UINT8 which should be ignored successfully. This patch modifies this issue. Cc: Bob Feng Cc: Liming Gao Signed-off-by: Yuwei Chen --- BaseTools/Scripts/ConvertFceToStructurePcd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BaseTools/Scripts/ConvertFceToStructurePcd.py b/BaseTools/Scr= ipts/ConvertFceToStructurePcd.py index 867660fba9cf..d72a20d62a5d 100644 --- a/BaseTools/Scripts/ConvertFceToStructurePcd.py +++ b/BaseTools/Scripts/ConvertFceToStructurePcd.py @@ -197,6 +197,8 @@ class parser_lst(object): efitxt =3D efivarstore_format.findall(self.text) for i in efitxt: struct =3D struct_re.findall(i.replace(' ','')) + if struct[0] in self._ignore: + continue name =3D name_re.findall(i.replace(' ','')) if struct and name: efivarstore_dict[name[0]]=3Dstruct[0] -- 2.27.0.windows.1