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
@ -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
|
||||
|
Reference in New Issue
Block a user