summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
diff options
context:
space:
mode:
authorCarsey, Jaben <jaben.carsey@intel.com>2018-04-16 21:52:13 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-04-18 22:15:35 +0800
commit55c84777ee638be8735a5c421941e7eb71633bdf (patch)
treed7e686884a5caa82209b2d57db5c38d2f468ec4e /BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
parent5a693b89a1976f13d32a3ed302f5d6e0664979d6 (diff)
downloadedk2-55c84777ee638be8735a5c421941e7eb71633bdf.tar.gz
edk2-55c84777ee638be8735a5c421941e7eb71633bdf.tar.bz2
edk2-55c84777ee638be8735a5c421941e7eb71633bdf.zip
BaseTools: use predefined constants instead of local strings
Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/WorkspaceDatabase.py')
-rw-r--r--BaseTools/Source/Python/Workspace/WorkspaceDatabase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py b/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
index e554d84326..14dcb1ae81 100644
--- a/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
+++ b/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
@@ -305,7 +305,7 @@ determine whether database file is out of date!\n")
PlatformList = []
for PlatformFile in self.TblFile.GetFileList(MODEL_FILE_DSC):
try:
- Platform = self.BuildObject[PathClass(PlatformFile), 'COMMON']
+ Platform = self.BuildObject[PathClass(PlatformFile), TAB_COMMON]
except:
Platform = None
if Platform is not None:
@@ -313,7 +313,7 @@ determine whether database file is out of date!\n")
return PlatformList
def _MapPlatform(self, Dscfile):
- Platform = self.BuildObject[PathClass(Dscfile), 'COMMON']
+ Platform = self.BuildObject[PathClass(Dscfile), TAB_COMMON]
if Platform is None:
EdkLogger.error('build', PARSER_ERROR, "Failed to parser DSC file: %s" % Dscfile)
return Platform