]>
Commit | Line | Data |
---|---|---|
4234283c LG |
1 | ## @file |
2 | # This file is used to define common static strings and global data used by UPT | |
3 | # | |
4 | # Copyright (c) 2011, Intel Corporation. All rights reserved.<BR> | |
5 | # | |
6 | # This program and the accompanying materials are licensed and made available | |
7 | # under the terms and conditions of the BSD License which accompanies this | |
8 | # distribution. The full text of the license may be found at | |
9 | # http://opensource.org/licenses/bsd-license.php | |
10 | # | |
11 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, | |
12 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. | |
13 | ||
14 | ''' | |
15 | GlobalData | |
16 | ''' | |
17 | ||
18 | # | |
19 | # The workspace directory | |
20 | # | |
21 | gWORKSPACE = '.' | |
22 | ||
23 | # | |
24 | # INF module directory | |
25 | # | |
26 | gINF_MODULE_DIR = "." | |
27 | gINF_MODULE_NAME = '' | |
28 | ||
29 | # | |
30 | # the directory to holds upt related files | |
31 | # | |
32 | gUPT_DIR = r"Conf/upt/" | |
33 | ||
34 | # | |
35 | # Log file for invalid meta-data files during force removing | |
36 | # | |
37 | gINVALID_MODULE_FILE = gUPT_DIR + r"Invalid_Modules.log" | |
38 | ||
39 | # | |
40 | # File name for content zip file in the distribution | |
41 | # | |
42 | gCONTENT_FILE = "dist.content" | |
43 | ||
44 | # | |
45 | # File name for XML file in the distibution | |
46 | # | |
47 | gDESC_FILE = 'dist.pkg' | |
48 | ||
49 | # | |
50 | # Case Insensitive flag | |
51 | # | |
52 | gCASE_INSENSITIVE = '' | |
53 | ||
54 | # | |
55 | # All Files dictionary | |
56 | # | |
57 | gALL_FILES = {} | |
58 | ||
59 | # | |
60 | # Database instance | |
61 | # | |
62 | gDB = None | |
63 | ||
64 | # | |
65 | # list for files that are found in module level but not in INF files, | |
66 | # items are (File, ModulePath), all these should be relative to $(WORKSPACE) | |
67 | # | |
68 | gMISS_FILE_IN_MODLIST = [] | |
69 | ||
70 | # | |
71 | # Global Current Line | |
72 | # | |
73 | gINF_CURRENT_LINE = None | |
74 | ||
75 | # | |
76 | # Global pkg list | |
77 | # | |
78 | gWSPKG_LIST = [] | |
79 | ||
80 | # | |
81 | # Flag used to take WARN as ERROR. | |
82 | # By default, only ERROR message will break the tools execution. | |
83 | # | |
84 | gWARNING_AS_ERROR = False | |
85 | ||
86 | # | |
87 | # Used to specify the temp directory to hold the unpacked distribution files | |
88 | # | |
89 | gUNPACK_DIR = None | |
90 | ||
91 | # | |
92 | # Flag used to mark whether the INF file is Binary INF or not. | |
93 | # | |
94 | gIS_BINARY_INF = False | |
4afd3d04 LG |
95 | # |
96 | # Used by Library instance parser | |
97 | # {FilePath: FileObj} | |
98 | # | |
99 | gLIBINSTANCEDICT = {} |