mirror of
				https://git.proxmox.com/git/mirror_edk2
				synced 2025-11-04 12:54:17 +00:00 
			
		
		
		
	BaseTools/Upt: Update UPT to ignore "!include" statement when parsing UNI file
Update UPT to ignore "!include" statement when parsing UNI file Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen <hesheng.chen@intel.com> Reviewed-by: YangX Li <yangx.li@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17872 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
		
							parent
							
								
									a94b1b866a
								
							
						
					
					
						commit
						2549514f01
					
				@ -1,7 +1,7 @@
 | 
			
		||||
## @file
 | 
			
		||||
# Collect all defined strings in multiple uni files.
 | 
			
		||||
#
 | 
			
		||||
# Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
 | 
			
		||||
# Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
 | 
			
		||||
#
 | 
			
		||||
# This program and the accompanying materials are licensed and made available 
 | 
			
		||||
# under the terms and conditions of the BSD License which accompanies this 
 | 
			
		||||
@ -529,7 +529,8 @@ class UniFileClassObject(object):
 | 
			
		||||
            Line = Line.replace(u'\t', u' ')
 | 
			
		||||
            Line = Line.replace(u'\u0006', u'\\')
 | 
			
		||||
 | 
			
		||||
            IncList = gINCLUDE_PATTERN.findall(Line)
 | 
			
		||||
            # IncList = gINCLUDE_PATTERN.findall(Line)
 | 
			
		||||
            IncList = []
 | 
			
		||||
            if len(IncList) == 1:
 | 
			
		||||
                for Dir in [File.Dir] + self.IncludePathList:
 | 
			
		||||
                    IncFile = PathClass(str(IncList[0]), Dir)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user