From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web08.2295.1614742878398839390 for ; Tue, 02 Mar 2021 19:41:18 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: yuwei.chen@intel.com) IronPort-SDR: mWpx9xqigVD4cynSthFhXAXLi8cycYUYd2yeev+YF1t5nIZuHhIvguFdZFcHYf6CSijAiVUAiR 8rBmWsvxD8Pg== X-IronPort-AV: E=McAfee;i="6000,8403,9911"; a="183703203" X-IronPort-AV: E=Sophos;i="5.81,218,1610438400"; d="scan'208";a="183703203" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2021 19:41:17 -0800 IronPort-SDR: Tb/O0a7Gs7yCtGj6dZjK27Y79V9JKyOpvDFzG0k8vaLFCvXlwiHXUlLraU4/ULjBixBl/JPxtP XVERa2kPI3uQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,218,1610438400"; d="scan'208";a="506636235" Received: from yuweipc.ccr.corp.intel.com ([10.239.158.34]) by fmsmga001.fm.intel.com with ESMTP; 02 Mar 2021 19:41:14 -0800 From: "Yuwei Chen" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao Subject: [PATCH 1/1] BaseTools: Modify struct parser for StructPcd Date: Wed, 3 Mar 2021 11:41:13 +0800 Message-Id: <20210303034113.142-1-yuwei.chen@intel.com> X-Mailer: git-send-email 2.27.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Currently the struct parser for StructPcd Generation does not fliter the types 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/Scripts/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 = efivarstore_format.findall(self.text) for i in efitxt: struct = struct_re.findall(i.replace(' ','')) + if struct[0] in self._ignore: + continue name = name_re.findall(i.replace(' ','')) if struct and name: efivarstore_dict[name[0]]=struct[0] -- 2.27.0.windows.1