summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace/DecBuildData.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/DecBuildData.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/DecBuildData.py')
-rw-r--r--BaseTools/Source/Python/Workspace/DecBuildData.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/Workspace/DecBuildData.py b/BaseTools/Source/Python/Workspace/DecBuildData.py
index ccd6cc6a37..31870e078c 100644
--- a/BaseTools/Source/Python/Workspace/DecBuildData.py
+++ b/BaseTools/Source/Python/Workspace/DecBuildData.py
@@ -63,7 +63,7 @@ class DecBuildData(PackageBuildClassObject):
# @param Platform (not used for DecBuildData)
# @param Macros Macros used for replacement in DSC file
#
- def __init__(self, File, RawData, BuildDataBase, Arch='COMMON', Target=None, Toolchain=None):
+ def __init__(self, File, RawData, BuildDataBase, Arch=TAB_ARCH_COMMON, Target=None, Toolchain=None):
self.MetaFile = File
self._PackageDir = File.Dir
self._RawData = RawData
@@ -327,7 +327,7 @@ class DecBuildData(PackageBuildClassObject):
PublicInclues.append(File)
if File in self._PrivateIncludes:
EdkLogger.error('build', OPTION_CONFLICT, "Can't determine %s's attribute, it is both defined as Private and non-Private attribute in DEC file." % File, File=self.MetaFile, Line=LineNo)
- if Record[3] == "COMMON":
+ if Record[3] == TAB_COMMON:
self._CommonIncludes.append(File)
return self._Includes