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