]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/Python/UPT/Library/GlobalData.py
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Library / GlobalData.py
1 ## @file
2 # This file is used to define common static strings and global data used by UPT
3 #
4 # Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
5 #
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 '''
9 GlobalData
10 '''
11
12 #
13 # The workspace directory
14 #
15 gWORKSPACE = '.'
16 gPACKAGE_PATH = None
17
18 #
19 # INF module directory
20 #
21 gINF_MODULE_DIR = "."
22 gINF_MODULE_NAME = ''
23
24 #
25 # the directory to holds upt related files
26 #
27 gUPT_DIR = r"Conf/upt/"
28
29 #
30 # Log file for invalid meta-data files during force removing
31 #
32 gINVALID_MODULE_FILE = gUPT_DIR + r"Invalid_Modules.log"
33
34 #
35 # File name for content zip file in the distribution
36 #
37 gCONTENT_FILE = "dist.content"
38
39 #
40 # File name for XML file in the distribution
41 #
42 gDESC_FILE = 'dist.pkg'
43
44 #
45 # Case Insensitive flag
46 #
47 gCASE_INSENSITIVE = ''
48
49 #
50 # All Files dictionary
51 #
52 gALL_FILES = {}
53
54 #
55 # Database instance
56 #
57 gDB = None
58
59 #
60 # list for files that are found in module level but not in INF files,
61 # items are (File, ModulePath), all these should be relative to $(WORKSPACE)
62 #
63 gMISS_FILE_IN_MODLIST = []
64
65 #
66 # Global Current Line
67 #
68 gINF_CURRENT_LINE = None
69
70 #
71 # Global pkg list
72 #
73 gWSPKG_LIST = []
74
75 #
76 # Flag used to take WARN as ERROR.
77 # By default, only ERROR message will break the tools execution.
78 #
79 gWARNING_AS_ERROR = False
80
81 #
82 # Used to specify the temp directory to hold the unpacked distribution files
83 #
84 gUNPACK_DIR = []
85
86 #
87 # Flag used to mark whether the INF file is Binary INF or not.
88 #
89 gIS_BINARY_INF = False
90
91 #
92 # Used by FileHook module.
93 #
94 gRECOVERMGR = None
95
96 #
97 # Used by PCD parser
98 #
99 gPackageDict = {}
100
101 #
102 # Used by Library instance parser
103 # {FilePath: FileObj}
104 #
105 gLIBINSTANCEDICT = {}
106
107 #
108 # Store the list of DIST
109 #
110 gTO_BE_INSTALLED_DIST_LIST = []