]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/Python/Eot/EotGlobalData.py
a9f51189c1eb747a07dde7d7eed55902b61b1d98
[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 - 2014, 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 collections import OrderedDict
15 from Common.LongFilePathSupport import OpenLongFilePath as open
16
17 gEFI_SOURCE = ''
18 gEDK_SOURCE = ''
19 gWORKSPACE = ''
20 gSHELL_INF = 'Application\Shell'
21 gMAKE_FILE = ''
22 gDSC_FILE = ''
23 gFV_FILE = []
24 gFV = []
25 gMAP_FILE = []
26 gMap = {}
27
28
29 gDb = ''
30 gIdentifierTableList = []
31
32 # Global macro
33 gMACRO = {}
34 gMACRO['EFI_SOURCE'] = gEFI_SOURCE
35 gMACRO['EDK_SOURCE'] = gEDK_SOURCE
36 gMACRO['SHELL_INF'] = gSHELL_INF
37 gMACRO['CAPSULE_INF'] = ''
38
39 # Log file for unmatched variables
40 gUN_MATCHED_LOG = 'Log_UnMatched.log'
41 gOP_UN_MATCHED = open(gUN_MATCHED_LOG, 'w+')
42
43 # Log file for all INF files
44 gINF_FILES = 'Log_Inf_File.log'
45 gOP_INF = open(gINF_FILES, 'w+')
46
47 # Log file for not dispatched PEIM/DRIVER
48 gUN_DISPATCHED_LOG = 'Log_UnDispatched.log'
49 gOP_UN_DISPATCHED = open(gUN_DISPATCHED_LOG, 'w+')
50
51 # Log file for unmatched variables in function calling
52 gUN_MATCHED_IN_LIBRARY_CALLING_LOG = 'Log_UnMatchedInLibraryCalling.log'
53 gOP_UN_MATCHED_IN_LIBRARY_CALLING = open(gUN_MATCHED_IN_LIBRARY_CALLING_LOG, 'w+')
54
55 # Log file for order of dispatched PEIM/DRIVER
56 gDISPATCH_ORDER_LOG = 'Log_DispatchOrder.log'
57 gOP_DISPATCH_ORDER = open(gDISPATCH_ORDER_LOG, 'w+')
58
59 # Log file for found source files
60 gSOURCE_FILES = 'Log_SourceFiles.log'
61 gOP_SOURCE_FILES = open(gSOURCE_FILES, 'w+')
62
63 # Dict for GUID found in DEC files
64 gGuidDict = dict()
65
66 # Dict for PROTOCOL
67 gProtocolList = {}
68
69 # Dict for consumed PPI function calling
70 gConsumedPpiLibrary = OrderedDict()
71 gConsumedPpiLibrary['EfiCommonLocateInterface'] = 0
72 gConsumedPpiLibrary['PeiServicesLocatePpi'] = 0
73
74 # Dict for produced PROTOCOL function calling
75 gProducedProtocolLibrary = OrderedDict()
76 gProducedProtocolLibrary['RegisterEsalClass'] = 0
77 gProducedProtocolLibrary['CoreInstallProtocolInterface'] = 1
78 gProducedProtocolLibrary['CoreInstallMultipleProtocolInterfaces'] = -1
79 gProducedProtocolLibrary['EfiInstallProtocolInterface'] = 1
80 gProducedProtocolLibrary['EfiReinstallProtocolInterface'] = 1
81 gProducedProtocolLibrary['EfiLibNamedEventSignal'] = 0
82 gProducedProtocolLibrary['LibInstallProtocolInterfaces'] = 1
83 gProducedProtocolLibrary['LibReinstallProtocolInterfaces'] = 1
84
85 # Dict for consumed PROTOCOL function calling
86 gConsumedProtocolLibrary = OrderedDict()
87 gConsumedProtocolLibrary['EfiHandleProtocol'] = 0
88 gConsumedProtocolLibrary['EfiLocateProtocolHandleBuffers'] = 0
89 gConsumedProtocolLibrary['EfiLocateProtocolInterface'] = 0
90 gConsumedProtocolLibrary['EfiHandleProtocol'] = 1
91
92 # Dict for callback PROTOCOL function callling
93 gCallbackProtocolLibrary = OrderedDict()
94 gCallbackProtocolLibrary['EfiRegisterProtocolCallback'] = 2