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>
This commit is contained in:
		@@ -416,7 +416,7 @@ class PATH(object):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  def header(self,struct):
 | 
					  def header(self,struct):
 | 
				
			||||||
    header={}
 | 
					    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)"')
 | 
					    head_re2 = re.compile(r'#line[\s\d]+"(\S+h)"')
 | 
				
			||||||
    for i in list(self.lstinf.keys()):
 | 
					    for i in list(self.lstinf.keys()):
 | 
				
			||||||
      with open(i,'r') as lst:
 | 
					      with open(i,'r') as lst:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user