diff options
author | Carsey, Jaben <jaben.carsey@intel.com> | 2018-04-20 23:51:37 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-05-02 14:59:20 +0800 |
commit | eece4292acc8068a3383fc200ac8c66be1156763 (patch) | |
tree | 8a2ab32e06f91cb43489246d44938449fcf7861a /BaseTools/Source/Python/Workspace/InfBuildData.py | |
parent | 0c60e60b1800cfd80d9aa8e93b482f812d2414a1 (diff) | |
download | edk2-eece4292acc8068a3383fc200ac8c66be1156763.tar.gz edk2-eece4292acc8068a3383fc200ac8c66be1156763.tar.bz2 edk2-eece4292acc8068a3383fc200ac8c66be1156763.zip |
BaseTools: DataType - cleanup list constants
remove unused ones
convert lists used for membership testing to sets
use shared ones not local ones
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/InfBuildData.py')
-rw-r--r-- | BaseTools/Source/Python/Workspace/InfBuildData.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Workspace/InfBuildData.py b/BaseTools/Source/Python/Workspace/InfBuildData.py index 27ef163eb4..94f142e8e6 100644 --- a/BaseTools/Source/Python/Workspace/InfBuildData.py +++ b/BaseTools/Source/Python/Workspace/InfBuildData.py @@ -901,7 +901,7 @@ class InfBuildData(ModuleBuildClassObject): Depex[Arch, ModuleType] = []
DepexList = Depex[Arch, ModuleType]
for Token in TokenList:
- if Token in DEPEX_SUPPORTED_OPCODE:
+ if Token in DEPEX_SUPPORTED_OPCODE_SET:
DepexList.append(Token)
elif Token.endswith(".inf"): # module file name
ModuleFile = os.path.normpath(Token)
|