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>
This commit is contained in:
committed by
Yonghong Zhu
parent
5a693b89a1
commit
55c84777ee
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user