diff options
author | Yuwei Chen <yuwei.chen@intel.com> | 2021-03-03 11:41:13 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-03-08 04:01:55 +0000 |
commit | d28a68153492ce3e64fb0535674e11e7f46a88a8 (patch) | |
tree | b29e70a8db23cbfbe72de6a2c84c358d02daab3a | |
parent | dd6c0a0ba3a042808cc54a4db27ff27089c2d766 (diff) | |
download | edk2-d28a68153492ce3e64fb0535674e11e7f46a88a8.tar.gz |
BaseTools: Modify struct parser for StructPcd
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>
-rw-r--r-- | BaseTools/Scripts/ConvertFceToStructurePcd.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Scripts/ConvertFceToStructurePcd.py b/BaseTools/Scripts/ConvertFceToStructurePcd.py index 91361ea2b9..2052db8c4b 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]
|