]> xenbits.xensource.com Git - people/aperard/ovmf.git/commitdiff
BaseTools: Modify struct parser for StructPcd
authorYuwei Chen <yuwei.chen@intel.com>
Wed, 3 Mar 2021 03:41:13 +0000 (11:41 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 8 Mar 2021 04:01:55 +0000 (04:01 +0000)
Currently the struct parser for StructPcd Generation does not
filter the types such as UINT8 which should be ignored successfully.
This patch modifies this issue.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Signed-off-by: Yuwei Chen <yuwei.chen@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Scripts/ConvertFceToStructurePcd.py

index 91361ea2b94dad1d270efa8502453576d2b48510..2052db8c4b69a51c514e7addb1c15853e47230d1 100644 (file)
@@ -197,6 +197,8 @@ class parser_lst(object):
     efitxt = efivarstore_format.findall(self.text)\r
     for i in efitxt:\r
       struct = struct_re.findall(i.replace(' ',''))\r
+      if struct[0] in self._ignore:\r
+          continue\r
       name = name_re.findall(i.replace(' ',''))\r
       if struct and name:\r
         efivarstore_dict[name[0]]=struct[0]\r