Revision: 17872
          http://sourceforge.net/p/edk2/code/17872
Author:   hchen30
Date:     2015-07-08 03:00:17 +0000 (Wed, 08 Jul 2015)
Log Message:
-----------
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 <[email protected]>
Reviewed-by: YangX Li <[email protected]>

Modified Paths:
--------------
    trunk/edk2/BaseTools/Source/Python/UPT/Library/UniClassObject.py

Modified: trunk/edk2/BaseTools/Source/Python/UPT/Library/UniClassObject.py
===================================================================
--- trunk/edk2/BaseTools/Source/Python/UPT/Library/UniClassObject.py    
2015-07-08 02:56:54 UTC (rev 17871)
+++ trunk/edk2/BaseTools/Source/Python/UPT/Library/UniClassObject.py    
2015-07-08 03:00:17 UTC (rev 17872)
@@ -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 @@
             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)


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to