summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace/InfBuildData.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/InfBuildData.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/InfBuildData.py')
-rw-r--r--BaseTools/Source/Python/Workspace/InfBuildData.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/Workspace/InfBuildData.py b/BaseTools/Source/Python/Workspace/InfBuildData.py
index 38165cb8a7..bf3da028c6 100644
--- a/BaseTools/Source/Python/Workspace/InfBuildData.py
+++ b/BaseTools/Source/Python/Workspace/InfBuildData.py
@@ -107,7 +107,7 @@ class InfBuildData(ModuleBuildClassObject):
# @param Platform The name of platform employing this module
# @param Macros Macros used for replacement in DSC file
#
- def __init__(self, FilePath, RawData, BuildDatabase, Arch='COMMON', Target=None, Toolchain=None):
+ def __init__(self, FilePath, RawData, BuildDatabase, Arch=TAB_ARCH_COMMON, Target=None, Toolchain=None):
self.MetaFile = FilePath
self._ModuleDir = FilePath.Dir
self._RawData = RawData
@@ -115,7 +115,7 @@ class InfBuildData(ModuleBuildClassObject):
self._Arch = Arch
self._Target = Target
self._Toolchain = Toolchain
- self._Platform = 'COMMON'
+ self._Platform = TAB_COMMON
self._SourceOverridePath = None
if FilePath.Key in GlobalData.gOverrideDir:
self._SourceOverridePath = GlobalData.gOverrideDir[FilePath.Key]
@@ -602,7 +602,7 @@ class InfBuildData(ModuleBuildClassObject):
for Record in RecordList:
FileType = Record[0]
LineNo = Record[-1]
- Target = 'COMMON'
+ Target = TAB_COMMON
FeatureFlag = []
if Record[2]:
TokenList = GetSplitValueList(Record[2], TAB_VALUE_SPLIT)