summaryrefslogtreecommitdiff
path: root/BaseTools
diff options
context:
space:
mode:
authorHess Chen <hesheng.chen@intel.com>2015-07-08 03:00:17 +0000
committerhchen30 <hchen30@Edk2>2015-07-08 03:00:17 +0000
commit2549514f01b9fcaf333b4aa998cb29df2f72195c (patch)
treee2b67d63111106ae6b500689efd8a35dee4ba9dd /BaseTools
parenta94b1b866afdb509938c60be8b4b3f8a9632e4b1 (diff)
downloadedk2-platforms-2549514f01b9fcaf333b4aa998cb29df2f72195c.tar.xz
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
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/Python/UPT/Library/UniClassObject.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/UPT/Library/UniClassObject.py b/BaseTools/Source/Python/UPT/Library/UniClassObject.py
index 563b82c688..332ae273c7 100644
--- a/BaseTools/Source/Python/UPT/Library/UniClassObject.py
+++ b/BaseTools/Source/Python/UPT/Library/UniClassObject.py
@@ -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)