]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/Python/Eot/EotGlobalData.py
Sync EDKII BaseTools to BaseTools project r1971
[mirror_edk2.git] / BaseTools / Source / Python / Eot / EotGlobalData.py
1 ## @file
2 # This file is used to save global datas
3 #
4 # Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>
5 # This program and the accompanying materials
6 # are licensed and made available under the terms and conditions of the BSD License
7 # which accompanies this distribution. The full text of the license may be found at
8 # http://opensource.org/licenses/bsd-license.php
9 #
10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 #
13
14 from Common.Misc import sdict
15
16 gEFI_SOURCE = ''
17 gEDK_SOURCE = ''
18 gWORKSPACE = ''
19 gSHELL_INF = 'Application\Shell'
20 gMAKE_FILE = ''
21 gDSC_FILE = ''
22 gFV_FILE = []
23 gFV = []
24 gMAP_FILE = []
25 gMap = {}
26
27
28 gDb = ''
29 gIdentifierTableList = []
30
31 # Global macro
32 gMACRO = {}
33 gMACRO['EFI_SOURCE'] = gEFI_SOURCE
34 gMACRO['EDK_SOURCE'] = gEDK_SOURCE
35 gMACRO['SHELL_INF'] = gSHELL_INF
36 gMACRO['CAPSULE_INF'] = ''
37
38 gNOT_FOUND_FILES = []
39 gSOURCE_FILES = []
40 gINF_FILES = {}
41 gDEC_FILES = []
42
43 # Log file for unmatched variables
44 gUN_MATCHED_LOG = 'Log_UnMatched.log'
45 gOP_UN_MATCHED = open(gUN_MATCHED_LOG, 'w+')
46
47 # Log file for all INF files
48 gINF_FILES = 'Log_Inf_File.log'
49 gOP_INF = open(gINF_FILES, 'w+')
50
51 # Log file for not dispatched PEIM/DRIVER
52 gUN_DISPATCHED_LOG = 'Log_UnDispatched.log'
53 gOP_UN_DISPATCHED = open(gUN_DISPATCHED_LOG, 'w+')
54
55 # Log file for unmatched variables in function calling
56 gUN_MATCHED_IN_LIBRARY_CALLING_LOG = 'Log_UnMatchedInLibraryCalling.log'
57 gOP_UN_MATCHED_IN_LIBRARY_CALLING = open(gUN_MATCHED_IN_LIBRARY_CALLING_LOG, 'w+')
58
59 # Log file for order of dispatched PEIM/DRIVER
60 gDISPATCH_ORDER_LOG = 'Log_DispatchOrder.log'
61 gOP_DISPATCH_ORDER = open(gDISPATCH_ORDER_LOG, 'w+')
62
63 # Log file for source files not found
64 gUN_FOUND_FILES = 'Log_UnFoundSourceFiles.log'
65 gOP_UN_FOUND_FILES = open(gUN_FOUND_FILES, 'w+')
66
67 # Log file for found source files
68 gSOURCE_FILES = 'Log_SourceFiles.log'
69 gOP_SOURCE_FILES = open(gSOURCE_FILES, 'w+')
70
71 # Dict for GUID found in DEC files
72 gGuidDict = sdict()
73
74 # Dict for hard coded GUID Macros
75 # {GuidName : [GuidMacro : GuidValue]}
76 gGuidMacroDict = sdict()
77
78 # Dict for PPI
79 gPpiList = {}
80
81 # Dict for PROTOCOL
82 gProtocolList = {}
83
84 # Dict for consumed PPI function calling
85 gConsumedPpiLibrary = sdict()
86 gConsumedPpiLibrary['EfiCommonLocateInterface'] = 0
87 gConsumedPpiLibrary['PeiServicesLocatePpi'] = 0
88
89 # Dict for produced PROTOCOL function calling
90 gProducedProtocolLibrary = sdict()
91 gProducedProtocolLibrary['RegisterEsalClass'] = 0
92 gProducedProtocolLibrary['CoreInstallProtocolInterface'] = 1
93 gProducedProtocolLibrary['CoreInstallMultipleProtocolInterfaces'] = -1
94 gProducedProtocolLibrary['EfiInstallProtocolInterface'] = 1
95 gProducedProtocolLibrary['EfiReinstallProtocolInterface'] = 1
96 gProducedProtocolLibrary['EfiLibNamedEventSignal'] = 0
97 gProducedProtocolLibrary['LibInstallProtocolInterfaces'] = 1
98 gProducedProtocolLibrary['LibReinstallProtocolInterfaces'] = 1
99
100 # Dict for consumed PROTOCOL function calling
101 gConsumedProtocolLibrary = sdict()
102 gConsumedProtocolLibrary['EfiHandleProtocol'] = 0
103 gConsumedProtocolLibrary['EfiLocateProtocolHandleBuffers'] = 0
104 gConsumedProtocolLibrary['EfiLocateProtocolInterface'] = 0
105 gConsumedProtocolLibrary['EfiHandleProtocol'] = 1
106
107 # Dict for callback PROTOCOL function callling
108 gCallbackProtocolLibrary = sdict()
109 gCallbackProtocolLibrary['EfiRegisterProtocolCallback'] = 2
110
111 # Dict for ARCH PROTOCOL
112 gArchProtocols = ['gEfiBdsArchProtocolGuid',
113 'gEfiCapsuleArchProtocolGuid',
114 'gEfiCpuArchProtocolGuid', #5053697e-2cbc-4819-90d9-0580deee5754
115 'gEfiMetronomeArchProtocolGuid',
116 'gEfiMonotonicCounterArchProtocolGuid',
117 'gEfiRealTimeClockArchProtocolGuid',
118 'gEfiResetArchProtocolGuid',
119 'gEfiRuntimeArchProtocolGuid',
120 'gEfiSecurityArchProtocolGuid',
121 'gEfiStatusCodeRuntimeProtocolGuid',
122 'gEfiTimerArchProtocolGuid',
123 'gEfiVariableArchProtocolGuid',
124 'gEfiVariableWriteArchProtocolGuid',
125 'gEfiWatchdogTimerArchProtocolGuid']
126 gArchProtocolGuids = ['665e3ff6-46cc-11d4-9a38-0090273fc14d',
127 '26baccb1-6f42-11d4-bce7-0080c73c8881',
128 '26baccb2-6f42-11d4-bce7-0080c73c8881',
129 '1da97072-bddc-4b30-99f1-72a0b56fff2a',
130 '27cfac87-46cc-11d4-9a38-0090273fc14d',
131 '27cfac88-46cc-11d4-9a38-0090273fc14d',
132 'b7dfb4e1-052f-449f-87be-9818fc91b733',
133 'a46423e3-4617-49f1-b9ff-d1bfa9115839',
134 'd2b2b828-0826-48a7-b3df-983c006024f0',
135 '26baccb3-6f42-11d4-bce7-0080c73c8881',
136 '1e5668e2-8481-11d4-bcf1-0080c73c8881',
137 '6441f818-6362-4e44-b570-7dba31dd2453',
138 '665e3ff5-46cc-11d4-9a38-0090273fc14d']