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
@ -47,6 +47,7 @@ import Common.GlobalData as GlobalData
|
||||
from DepexSection import DepexSection
|
||||
from Common.Misc import SaveFileOnChange
|
||||
from Common.Expression import *
|
||||
from Common.DataType import TAB_COMMON
|
||||
|
||||
## generate FFS from INF
|
||||
#
|
||||
@ -205,7 +206,7 @@ class FfsInfStatement(FfsInfStatementClassObject):
|
||||
self.ShadowFromInfFile = Inf.Shadow
|
||||
|
||||
else:
|
||||
Inf = GenFdsGlobalVariable.WorkSpace.BuildObject[PathClassObj, 'COMMON', GenFdsGlobalVariable.TargetName, GenFdsGlobalVariable.ToolChainTag]
|
||||
Inf = GenFdsGlobalVariable.WorkSpace.BuildObject[PathClassObj, TAB_COMMON, GenFdsGlobalVariable.TargetName, GenFdsGlobalVariable.ToolChainTag]
|
||||
self.BaseName = Inf.BaseName
|
||||
self.ModuleGuid = Inf.Guid
|
||||
self.ModuleType = Inf.ModuleType
|
||||
@ -570,7 +571,7 @@ class FfsInfStatement(FfsInfStatementClassObject):
|
||||
|
||||
RuleName = 'RULE' + \
|
||||
'.' + \
|
||||
'COMMON' + \
|
||||
TAB_COMMON + \
|
||||
'.' + \
|
||||
self.ModuleType.upper()
|
||||
|
||||
|
Reference in New Issue
Block a user