X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FEot%2FEotGlobalData.py;h=cb6a940ab8f943d05d6a0c57cb024b7a6a344f25;hb=c6a14de3ef30291918f3b15436cf6a75db413eea;hp=dea4206e9d487cdd818bf41ef0c7df1828d95a5d;hpb=140b2b11a0dc7a414b93a9b8a50f5944d7a55d3e;p=mirror_edk2.git diff --git a/BaseTools/Source/Python/Eot/EotGlobalData.py b/BaseTools/Source/Python/Eot/EotGlobalData.py index dea4206e9d..cb6a940ab8 100644 --- a/BaseTools/Source/Python/Eot/EotGlobalData.py +++ b/BaseTools/Source/Python/Eot/EotGlobalData.py @@ -11,7 +11,7 @@ # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. # -from Common.Misc import sdict +from collections import OrderedDict from Common.LongFilePathSupport import OpenLongFilePath as open gEFI_SOURCE = '' @@ -36,11 +36,6 @@ gMACRO['EDK_SOURCE'] = gEDK_SOURCE gMACRO['SHELL_INF'] = gSHELL_INF gMACRO['CAPSULE_INF'] = '' -gNOT_FOUND_FILES = [] -gSOURCE_FILES = [] -gINF_FILES = {} -gDEC_FILES = [] - # Log file for unmatched variables gUN_MATCHED_LOG = 'Log_UnMatched.log' gOP_UN_MATCHED = open(gUN_MATCHED_LOG, 'w+') @@ -61,10 +56,6 @@ gOP_UN_MATCHED_IN_LIBRARY_CALLING = open(gUN_MATCHED_IN_LIBRARY_CALLING_LOG, 'w+ gDISPATCH_ORDER_LOG = 'Log_DispatchOrder.log' gOP_DISPATCH_ORDER = open(gDISPATCH_ORDER_LOG, 'w+') -# Log file for source files not found -gUN_FOUND_FILES = 'Log_UnFoundSourceFiles.log' -gOP_UN_FOUND_FILES = open(gUN_FOUND_FILES, 'w+') - # Log file for found source files gSOURCE_FILES = 'Log_SourceFiles.log' gOP_SOURCE_FILES = open(gSOURCE_FILES, 'w+') @@ -72,19 +63,19 @@ gOP_SOURCE_FILES = open(gSOURCE_FILES, 'w+') # Dict for GUID found in DEC files gGuidDict = dict() +# Dict for PROTOCOL +gProtocolList = {} # Dict for PPI gPpiList = {} -# Dict for PROTOCOL -gProtocolList = {} # Dict for consumed PPI function calling -gConsumedPpiLibrary = sdict() +gConsumedPpiLibrary = OrderedDict() gConsumedPpiLibrary['EfiCommonLocateInterface'] = 0 gConsumedPpiLibrary['PeiServicesLocatePpi'] = 0 # Dict for produced PROTOCOL function calling -gProducedProtocolLibrary = sdict() +gProducedProtocolLibrary = OrderedDict() gProducedProtocolLibrary['RegisterEsalClass'] = 0 gProducedProtocolLibrary['CoreInstallProtocolInterface'] = 1 gProducedProtocolLibrary['CoreInstallMultipleProtocolInterfaces'] = -1 @@ -95,32 +86,17 @@ gProducedProtocolLibrary['LibInstallProtocolInterfaces'] = 1 gProducedProtocolLibrary['LibReinstallProtocolInterfaces'] = 1 # Dict for consumed PROTOCOL function calling -gConsumedProtocolLibrary = sdict() +gConsumedProtocolLibrary = OrderedDict() gConsumedProtocolLibrary['EfiHandleProtocol'] = 0 gConsumedProtocolLibrary['EfiLocateProtocolHandleBuffers'] = 0 gConsumedProtocolLibrary['EfiLocateProtocolInterface'] = 0 gConsumedProtocolLibrary['EfiHandleProtocol'] = 1 # Dict for callback PROTOCOL function callling -gCallbackProtocolLibrary = sdict() +gCallbackProtocolLibrary = OrderedDict() gCallbackProtocolLibrary['EfiRegisterProtocolCallback'] = 2 -# Dict for ARCH PROTOCOL -gArchProtocols = ['gEfiBdsArchProtocolGuid', - 'gEfiCapsuleArchProtocolGuid', - 'gEfiCpuArchProtocolGuid', #5053697e-2cbc-4819-90d9-0580deee5754 - 'gEfiMetronomeArchProtocolGuid', - 'gEfiMonotonicCounterArchProtocolGuid', - 'gEfiRealTimeClockArchProtocolGuid', - 'gEfiResetArchProtocolGuid', - 'gEfiRuntimeArchProtocolGuid', - 'gEfiSecurityArchProtocolGuid', - 'gEfiStatusCodeRuntimeProtocolGuid', - 'gEfiTimerArchProtocolGuid', - 'gEfiVariableArchProtocolGuid', - 'gEfiVariableWriteArchProtocolGuid', - 'gEfiWatchdogTimerArchProtocolGuid'] -gArchProtocolGuids = ['665e3ff6-46cc-11d4-9a38-0090273fc14d', +gArchProtocolGuids = {'665e3ff6-46cc-11d4-9a38-0090273fc14d', '26baccb1-6f42-11d4-bce7-0080c73c8881', '26baccb2-6f42-11d4-bce7-0080c73c8881', '1da97072-bddc-4b30-99f1-72a0b56fff2a', @@ -132,4 +108,4 @@ gArchProtocolGuids = ['665e3ff6-46cc-11d4-9a38-0090273fc14d', '26baccb3-6f42-11d4-bce7-0080c73c8881', '1e5668e2-8481-11d4-bcf1-0080c73c8881', '6441f818-6362-4e44-b570-7dba31dd2453', - '665e3ff5-46cc-11d4-9a38-0090273fc14d'] + '665e3ff5-46cc-11d4-9a38-0090273fc14d'}