BaseTools: Replace EDK Component strings with predefined constant
EDK_COMPONENT_TYPE_LIBRARY was 'LIBRARY' EDK_COMPONENT_TYPE_SECURITY_CORE was 'SECURITY_CORE' EDK_COMPONENT_TYPE_COMBINED_PEIM_DRIVER was 'COMBINED_PEIM_DRIVER' EDK_COMPONENT_TYPE_PIC_PEIM was 'PIC_PEIM' EDK_COMPONENT_TYPE_RELOCATABLE_PEIM was 'RELOCATABLE_PEIM' EDK_COMPONENT_TYPE_BS_DRIVER was 'BS_DRIVER' EDK_COMPONENT_TYPE_RT_DRIVER was 'RT_DRIVER' EDK_COMPONENT_TYPE_SAL_RT_DRIVER was 'SAL_RT_DRIVER' EDK_COMPONENT_TYPE_APPLICATION was 'APPLICATION' v2 - revert 2 files. will update later in own patches. v3 - fix v2 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
ee1ca53df6
commit
0c60e60b18
@ -344,7 +344,7 @@ class InfBuildData(ModuleBuildClassObject):
|
||||
self._BuildType = self._ComponentType.upper()
|
||||
if self._ComponentType in COMPONENT_TO_MODULE_MAP_DICT:
|
||||
self._ModuleType = COMPONENT_TO_MODULE_MAP_DICT[self._ComponentType]
|
||||
if self._ComponentType == 'LIBRARY':
|
||||
if self._ComponentType == EDK_COMPONENT_TYPE_LIBRARY:
|
||||
self._LibraryClass = [LibraryClassObject(self._BaseName, SUP_MODULE_LIST)]
|
||||
# make use some [nmake] section macros
|
||||
Macros = self._Macros
|
||||
|
Reference in New Issue
Block a user