]>
Commit | Line | Data |
---|---|---|
52302d4d LG |
1 | ## @file\r |
2 | # This file is used to save global datas\r | |
3 | #\r | |
1be2ed90 | 4 | # Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>\r |
40d841f6 | 5 | # This program and the accompanying materials\r |
52302d4d LG |
6 | # are licensed and made available under the terms and conditions of the BSD License\r |
7 | # which accompanies this distribution. The full text of the license may be found at\r | |
8 | # http://opensource.org/licenses/bsd-license.php\r | |
9 | #\r | |
10 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | #\r | |
13 | \r | |
6e6d767e | 14 | from collections import OrderedDict\r |
1be2ed90 | 15 | from Common.LongFilePathSupport import OpenLongFilePath as open\r |
52302d4d LG |
16 | \r |
17 | gEFI_SOURCE = ''\r | |
18 | gEDK_SOURCE = ''\r | |
19 | gWORKSPACE = ''\r | |
20 | gSHELL_INF = 'Application\Shell'\r | |
21 | gMAKE_FILE = ''\r | |
22 | gDSC_FILE = ''\r | |
23 | gFV_FILE = []\r | |
24 | gFV = []\r | |
25 | gMAP_FILE = []\r | |
26 | gMap = {}\r | |
27 | \r | |
28 | \r | |
29 | gDb = ''\r | |
30 | gIdentifierTableList = []\r | |
31 | \r | |
32 | # Global macro\r | |
33 | gMACRO = {}\r | |
34 | gMACRO['EFI_SOURCE'] = gEFI_SOURCE\r | |
35 | gMACRO['EDK_SOURCE'] = gEDK_SOURCE\r | |
36 | gMACRO['SHELL_INF'] = gSHELL_INF\r | |
37 | gMACRO['CAPSULE_INF'] = ''\r | |
38 | \r | |
52302d4d LG |
39 | # Log file for unmatched variables\r |
40 | gUN_MATCHED_LOG = 'Log_UnMatched.log'\r | |
41 | gOP_UN_MATCHED = open(gUN_MATCHED_LOG, 'w+')\r | |
42 | \r | |
43 | # Log file for all INF files\r | |
44 | gINF_FILES = 'Log_Inf_File.log'\r | |
45 | gOP_INF = open(gINF_FILES, 'w+')\r | |
46 | \r | |
47 | # Log file for not dispatched PEIM/DRIVER\r | |
48 | gUN_DISPATCHED_LOG = 'Log_UnDispatched.log'\r | |
49 | gOP_UN_DISPATCHED = open(gUN_DISPATCHED_LOG, 'w+')\r | |
50 | \r | |
51 | # Log file for unmatched variables in function calling\r | |
52 | gUN_MATCHED_IN_LIBRARY_CALLING_LOG = 'Log_UnMatchedInLibraryCalling.log'\r | |
53 | gOP_UN_MATCHED_IN_LIBRARY_CALLING = open(gUN_MATCHED_IN_LIBRARY_CALLING_LOG, 'w+')\r | |
54 | \r | |
55 | # Log file for order of dispatched PEIM/DRIVER\r | |
56 | gDISPATCH_ORDER_LOG = 'Log_DispatchOrder.log'\r | |
57 | gOP_DISPATCH_ORDER = open(gDISPATCH_ORDER_LOG, 'w+')\r | |
58 | \r | |
52302d4d LG |
59 | # Log file for found source files\r |
60 | gSOURCE_FILES = 'Log_SourceFiles.log'\r | |
61 | gOP_SOURCE_FILES = open(gSOURCE_FILES, 'w+')\r | |
62 | \r | |
63 | # Dict for GUID found in DEC files\r | |
5af2a627 | 64 | gGuidDict = dict()\r |
52302d4d | 65 | \r |
52302d4d LG |
66 | # Dict for PROTOCOL\r |
67 | gProtocolList = {}\r | |
e95a0dfb JC |
68 | # Dict for PPI\r |
69 | gPpiList = {}\r | |
70 | \r | |
52302d4d LG |
71 | \r |
72 | # Dict for consumed PPI function calling\r | |
6e6d767e | 73 | gConsumedPpiLibrary = OrderedDict()\r |
52302d4d LG |
74 | gConsumedPpiLibrary['EfiCommonLocateInterface'] = 0\r |
75 | gConsumedPpiLibrary['PeiServicesLocatePpi'] = 0\r | |
76 | \r | |
77 | # Dict for produced PROTOCOL function calling\r | |
6e6d767e | 78 | gProducedProtocolLibrary = OrderedDict()\r |
52302d4d LG |
79 | gProducedProtocolLibrary['RegisterEsalClass'] = 0\r |
80 | gProducedProtocolLibrary['CoreInstallProtocolInterface'] = 1\r | |
81 | gProducedProtocolLibrary['CoreInstallMultipleProtocolInterfaces'] = -1\r | |
82 | gProducedProtocolLibrary['EfiInstallProtocolInterface'] = 1\r | |
83 | gProducedProtocolLibrary['EfiReinstallProtocolInterface'] = 1\r | |
84 | gProducedProtocolLibrary['EfiLibNamedEventSignal'] = 0\r | |
85 | gProducedProtocolLibrary['LibInstallProtocolInterfaces'] = 1\r | |
86 | gProducedProtocolLibrary['LibReinstallProtocolInterfaces'] = 1\r | |
87 | \r | |
88 | # Dict for consumed PROTOCOL function calling\r | |
6e6d767e | 89 | gConsumedProtocolLibrary = OrderedDict()\r |
52302d4d LG |
90 | gConsumedProtocolLibrary['EfiHandleProtocol'] = 0\r |
91 | gConsumedProtocolLibrary['EfiLocateProtocolHandleBuffers'] = 0\r | |
92 | gConsumedProtocolLibrary['EfiLocateProtocolInterface'] = 0\r | |
93 | gConsumedProtocolLibrary['EfiHandleProtocol'] = 1\r | |
94 | \r | |
95 | # Dict for callback PROTOCOL function callling\r | |
6e6d767e | 96 | gCallbackProtocolLibrary = OrderedDict()\r |
52302d4d | 97 | gCallbackProtocolLibrary['EfiRegisterProtocolCallback'] = 2\r |
e95a0dfb JC |
98 | \r |
99 | gArchProtocolGuids = {'665e3ff6-46cc-11d4-9a38-0090273fc14d',\r | |
100 | '26baccb1-6f42-11d4-bce7-0080c73c8881',\r | |
101 | '26baccb2-6f42-11d4-bce7-0080c73c8881',\r | |
102 | '1da97072-bddc-4b30-99f1-72a0b56fff2a',\r | |
103 | '27cfac87-46cc-11d4-9a38-0090273fc14d',\r | |
104 | '27cfac88-46cc-11d4-9a38-0090273fc14d',\r | |
105 | 'b7dfb4e1-052f-449f-87be-9818fc91b733',\r | |
106 | 'a46423e3-4617-49f1-b9ff-d1bfa9115839',\r | |
107 | 'd2b2b828-0826-48a7-b3df-983c006024f0',\r | |
108 | '26baccb3-6f42-11d4-bce7-0080c73c8881',\r | |
109 | '1e5668e2-8481-11d4-bcf1-0080c73c8881',\r | |
110 | '6441f818-6362-4e44-b570-7dba31dd2453',\r | |
111 | '665e3ff5-46cc-11d4-9a38-0090273fc14d'}\r |