diff options
author | Liming Gao <liming.gao@intel.com> | 2018-11-20 16:05:56 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-11-29 08:30:52 +0800 |
commit | 591a44c02d92fcb9f1ec0950714d20c5da283d38 (patch) | |
tree | f66462d9bfeeadc3b1fd2338b67a340c5e6e8c24 | |
parent | 9ebef6c0a7d399af04669116dd31afebe2d4c17b (diff) | |
download | edk2-591a44c02d92fcb9f1ec0950714d20c5da283d38.tar.gz edk2-591a44c02d92fcb9f1ec0950714d20c5da283d38.tar.bz2 edk2-591a44c02d92fcb9f1ec0950714d20c5da283d38.zip |
BaseTools Script: Update ConvertFceToStructurePcd to report warning messages
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1297
When the header files are not found for the used C structure, this script will
report the warning, let user know there is no header file to define C structure.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Wang BinX A <binx.a.wang@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
-rw-r--r-- | BaseTools/Scripts/ConvertFceToStructurePcd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Scripts/ConvertFceToStructurePcd.py b/BaseTools/Scripts/ConvertFceToStructurePcd.py index 9240b8f0f3..59eec28d5e 100644 --- a/BaseTools/Scripts/ConvertFceToStructurePcd.py +++ b/BaseTools/Scripts/ConvertFceToStructurePcd.py @@ -416,7 +416,7 @@ class PATH(object): def header(self,struct):
header={}
- head_re = re.compile(r'} %s;[\s\S\n]+h{1}"'%struct,re.M|re.S)
+ head_re = re.compile('typedef.*} %s;[\n]+(.*?)(?:typedef|formset)'%struct,re.M|re.S)
head_re2 = re.compile(r'#line[\s\d]+"(\S+h)"')
for i in list(self.lstinf.keys()):
with open(i,'r') as lst:
|