Sync EDKII BaseTools to BaseTools project r1903.
[efi/edk2/.git] / edk2 / BaseTools / Source / Python / Common / DataType.py
1 ## @file\r
2 # This file is used to define common static strings used by INF/DEC/DSC files\r
3 #\r
4 # Copyright (c) 2007 ~ 2008, Intel Corporation\r
5 # All rights reserved. This program and the accompanying materials\r
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
14 # Common Definitions\r
15 #\r
16 TAB_SPLIT = '.'\r
17 TAB_COMMENT_R8_START = '/*'\r
18 TAB_COMMENT_R8_END = '*/'\r
19 TAB_COMMENT_R8_SPLIT = '//'\r
20 TAB_COMMENT_SPLIT = '#'\r
21 TAB_EQUAL_SPLIT = '='\r
22 TAB_VALUE_SPLIT = '|'\r
23 TAB_COMMA_SPLIT = ','\r
24 TAB_SPACE_SPLIT = ' '\r
25 TAB_SECTION_START = '['\r
26 TAB_SECTION_END = ']'\r
27 TAB_OPTION_START = '<'\r
28 TAB_OPTION_END  = '>'\r
29 TAB_SLASH = '\\'\r
30 TAB_BACK_SLASH = '/'\r
31 \r
32 TAB_EDK_SOURCE = '$(EDK_SOURCE)'\r
33 TAB_EFI_SOURCE = '$(EFI_SOURCE)'\r
34 TAB_WORKSPACE = '$(WORKSPACE)'\r
35 \r
36 TAB_ARCH_NULL = ''\r
37 TAB_ARCH_COMMON = 'COMMON'\r
38 TAB_ARCH_IA32 = 'IA32'\r
39 TAB_ARCH_X64 = 'X64'\r
40 TAB_ARCH_IPF = 'IPF'\r
41 TAB_ARCH_ARM = 'ARM'\r
42 TAB_ARCH_EBC = 'EBC'\r
43 \r
44 ARCH_LIST = [TAB_ARCH_IA32, TAB_ARCH_X64, TAB_ARCH_IPF, TAB_ARCH_ARM, TAB_ARCH_EBC]\r
45 ARCH_LIST_FULL = [TAB_ARCH_COMMON] + ARCH_LIST\r
46 \r
47 SUP_MODULE_BASE = 'BASE'\r
48 SUP_MODULE_SEC = 'SEC'\r
49 SUP_MODULE_PEI_CORE = 'PEI_CORE'\r
50 SUP_MODULE_PEIM = 'PEIM'\r
51 SUP_MODULE_DXE_CORE = 'DXE_CORE'\r
52 SUP_MODULE_DXE_DRIVER = 'DXE_DRIVER'\r
53 SUP_MODULE_DXE_RUNTIME_DRIVER = 'DXE_RUNTIME_DRIVER'\r
54 SUP_MODULE_DXE_SAL_DRIVER = 'DXE_SAL_DRIVER'\r
55 SUP_MODULE_DXE_SMM_DRIVER = 'DXE_SMM_DRIVER'\r
56 SUP_MODULE_UEFI_DRIVER = 'UEFI_DRIVER'\r
57 SUP_MODULE_UEFI_APPLICATION = 'UEFI_APPLICATION'\r
58 SUP_MODULE_USER_DEFINED = 'USER_DEFINED'\r
59 SUP_MODULE_SMM_CORE = 'SMM_CORE'\r
60 \r
61 SUP_MODULE_LIST = [SUP_MODULE_BASE, SUP_MODULE_SEC, SUP_MODULE_PEI_CORE, SUP_MODULE_PEIM, SUP_MODULE_DXE_CORE, SUP_MODULE_DXE_DRIVER, \\r
62                    SUP_MODULE_DXE_RUNTIME_DRIVER, SUP_MODULE_DXE_SAL_DRIVER, SUP_MODULE_DXE_SMM_DRIVER, SUP_MODULE_UEFI_DRIVER, \\r
63                    SUP_MODULE_UEFI_APPLICATION, SUP_MODULE_USER_DEFINED, SUP_MODULE_SMM_CORE]\r
64 SUP_MODULE_LIST_STRING = TAB_VALUE_SPLIT.join(l for l in SUP_MODULE_LIST)\r
65 \r
66 EDK_COMPONENT_TYPE_LIBRARY = 'LIBRARY'\r
67 EDK_COMPONENT_TYPE_SECUARITY_CORE = 'SECUARITY_CORE'\r
68 EDK_COMPONENT_TYPE_PEI_CORE = 'PEI_CORE'\r
69 EDK_COMPONENT_TYPE_COMBINED_PEIM_DRIVER = 'COMBINED_PEIM_DRIVER'\r
70 EDK_COMPONENT_TYPE_PIC_PEIM = 'PIC_PEIM'\r
71 EDK_COMPONENT_TYPE_RELOCATABLE_PEIM = 'RELOCATABLE_PEIM'\r
72 EDK_COMPONENT_TYPE_BS_DRIVER = 'BS_DRIVER'\r
73 EDK_COMPONENT_TYPE_RT_DRIVER = 'RT_DRIVER'\r
74 EDK_COMPONENT_TYPE_SAL_RT_DRIVER = 'SAL_RT_DRIVER'\r
75 EDK_COMPONENT_TYPE_APPLICATION = 'APPLICATION'\r
76 EDK_NAME   = 'EDK'\r
77 EDKII_NAME = 'EDKII'\r
78 \r
79 BINARY_FILE_TYPE_FW = 'FW'\r
80 BINARY_FILE_TYPE_GUID = 'GUID'\r
81 BINARY_FILE_TYPE_PREEFORM = 'PREEFORM'\r
82 BINARY_FILE_TYPE_UEFI_APP = 'UEFI_APP'\r
83 BINARY_FILE_TYPE_UNI_UI = 'UNI_UI'\r
84 BINARY_FILE_TYPE_UNI_VER = 'UNI_VER'\r
85 BINARY_FILE_TYPE_LIB = 'LIB'\r
86 BINARY_FILE_TYPE_PE32 = 'PE32'\r
87 BINARY_FILE_TYPE_PIC = 'PIC'\r
88 BINARY_FILE_TYPE_PEI_DEPEX = 'PEI_DEPEX'\r
89 BINARY_FILE_TYPE_DXE_DEPEX = 'DXE_DEPEX'\r
90 BINARY_FILE_TYPE_SMM_DEPEX = 'SMM_DEPEX'\r
91 BINARY_FILE_TYPE_TE = 'TE'\r
92 BINARY_FILE_TYPE_VER = 'VER'\r
93 BINARY_FILE_TYPE_UI = 'UI'\r
94 BINARY_FILE_TYPE_BIN = 'BIN'\r
95 BINARY_FILE_TYPE_FV = 'FV'\r
96 \r
97 PLATFORM_COMPONENT_TYPE_LIBRARY = 'LIBRARY'\r
98 PLATFORM_COMPONENT_TYPE_LIBRARY_CLASS = 'LIBRARY_CLASS'\r
99 PLATFORM_COMPONENT_TYPE_MODULE = 'MODULE'\r
100 \r
101 TAB_LIBRARIES = 'Libraries'\r
102 \r
103 TAB_SOURCES = 'Sources'\r
104 TAB_SOURCES_COMMON = TAB_SOURCES + TAB_SPLIT + TAB_ARCH_COMMON\r
105 TAB_SOURCES_IA32 = TAB_SOURCES + TAB_SPLIT + TAB_ARCH_IA32\r
106 TAB_SOURCES_X64 = TAB_SOURCES + TAB_SPLIT + TAB_ARCH_X64\r
107 TAB_SOURCES_IPF = TAB_SOURCES + TAB_SPLIT + TAB_ARCH_IPF\r
108 TAB_SOURCES_ARM = TAB_SOURCES + TAB_SPLIT + TAB_ARCH_ARM\r
109 TAB_SOURCES_EBC = TAB_SOURCES + TAB_SPLIT + TAB_ARCH_EBC\r
110 \r
111 TAB_BINARIES = 'Binaries'\r
112 TAB_BINARIES_COMMON = TAB_BINARIES + TAB_SPLIT + TAB_ARCH_COMMON\r
113 TAB_BINARIES_IA32 = TAB_BINARIES + TAB_SPLIT + TAB_ARCH_IA32\r
114 TAB_BINARIES_X64 = TAB_BINARIES + TAB_SPLIT + TAB_ARCH_X64\r
115 TAB_BINARIES_IPF = TAB_BINARIES + TAB_SPLIT + TAB_ARCH_IPF\r
116 TAB_BINARIES_ARM = TAB_BINARIES + TAB_SPLIT + TAB_ARCH_ARM\r
117 TAB_BINARIES_EBC = TAB_BINARIES + TAB_SPLIT + TAB_ARCH_EBC\r
118 \r
119 TAB_INCLUDES = 'Includes'\r
120 TAB_INCLUDES_COMMON = TAB_INCLUDES + TAB_SPLIT + TAB_ARCH_COMMON\r
121 TAB_INCLUDES_IA32 = TAB_INCLUDES + TAB_SPLIT + TAB_ARCH_IA32\r
122 TAB_INCLUDES_X64 = TAB_INCLUDES + TAB_SPLIT + TAB_ARCH_X64\r
123 TAB_INCLUDES_IPF = TAB_INCLUDES + TAB_SPLIT + TAB_ARCH_IPF\r
124 TAB_INCLUDES_ARM = TAB_INCLUDES + TAB_SPLIT + TAB_ARCH_ARM\r
125 TAB_INCLUDES_EBC = TAB_INCLUDES + TAB_SPLIT + TAB_ARCH_EBC\r
126 \r
127 TAB_GUIDS = 'Guids'\r
128 TAB_GUIDS_COMMON = TAB_GUIDS + TAB_SPLIT + TAB_ARCH_COMMON\r
129 TAB_GUIDS_IA32 = TAB_GUIDS + TAB_SPLIT + TAB_ARCH_IA32\r
130 TAB_GUIDS_X64 = TAB_GUIDS + TAB_SPLIT + TAB_ARCH_X64\r
131 TAB_GUIDS_IPF = TAB_GUIDS + TAB_SPLIT + TAB_ARCH_IPF\r
132 TAB_GUIDS_ARM = TAB_GUIDS + TAB_SPLIT + TAB_ARCH_ARM\r
133 TAB_GUIDS_EBC = TAB_GUIDS + TAB_SPLIT + TAB_ARCH_EBC\r
134 \r
135 TAB_PROTOCOLS = 'Protocols'\r
136 TAB_PROTOCOLS_COMMON = TAB_PROTOCOLS + TAB_SPLIT + TAB_ARCH_COMMON\r
137 TAB_PROTOCOLS_IA32 = TAB_PROTOCOLS + TAB_SPLIT + TAB_ARCH_IA32\r
138 TAB_PROTOCOLS_X64 = TAB_PROTOCOLS + TAB_SPLIT + TAB_ARCH_X64\r
139 TAB_PROTOCOLS_IPF = TAB_PROTOCOLS + TAB_SPLIT + TAB_ARCH_IPF\r
140 TAB_PROTOCOLS_ARM = TAB_PROTOCOLS + TAB_SPLIT + TAB_ARCH_ARM\r
141 TAB_PROTOCOLS_EBC = TAB_PROTOCOLS + TAB_SPLIT + TAB_ARCH_EBC\r
142 \r
143 TAB_PPIS = 'Ppis'\r
144 TAB_PPIS_COMMON = TAB_PPIS + TAB_SPLIT + TAB_ARCH_COMMON\r
145 TAB_PPIS_IA32 = TAB_PPIS + TAB_SPLIT + TAB_ARCH_IA32\r
146 TAB_PPIS_X64 = TAB_PPIS + TAB_SPLIT + TAB_ARCH_X64\r
147 TAB_PPIS_IPF = TAB_PPIS + TAB_SPLIT + TAB_ARCH_IPF\r
148 TAB_PPIS_ARM = TAB_PPIS + TAB_SPLIT + TAB_ARCH_ARM\r
149 TAB_PPIS_EBC = TAB_PPIS + TAB_SPLIT + TAB_ARCH_EBC\r
150 \r
151 TAB_LIBRARY_CLASSES = 'LibraryClasses'\r
152 TAB_LIBRARY_CLASSES_COMMON = TAB_LIBRARY_CLASSES + TAB_SPLIT + TAB_ARCH_COMMON\r
153 TAB_LIBRARY_CLASSES_IA32 = TAB_LIBRARY_CLASSES + TAB_SPLIT + TAB_ARCH_IA32\r
154 TAB_LIBRARY_CLASSES_X64 = TAB_LIBRARY_CLASSES + TAB_SPLIT + TAB_ARCH_X64\r
155 TAB_LIBRARY_CLASSES_IPF = TAB_LIBRARY_CLASSES + TAB_SPLIT + TAB_ARCH_IPF\r
156 TAB_LIBRARY_CLASSES_ARM = TAB_LIBRARY_CLASSES + TAB_SPLIT + TAB_ARCH_ARM\r
157 TAB_LIBRARY_CLASSES_EBC = TAB_LIBRARY_CLASSES + TAB_SPLIT + TAB_ARCH_EBC\r
158 \r
159 TAB_PACKAGES = 'Packages'\r
160 TAB_PACKAGES_COMMON = TAB_PACKAGES + TAB_SPLIT + TAB_ARCH_COMMON\r
161 TAB_PACKAGES_IA32 = TAB_PACKAGES + TAB_SPLIT + TAB_ARCH_IA32\r
162 TAB_PACKAGES_X64 = TAB_PACKAGES + TAB_SPLIT + TAB_ARCH_X64\r
163 TAB_PACKAGES_IPF = TAB_PACKAGES + TAB_SPLIT + TAB_ARCH_IPF\r
164 TAB_PACKAGES_ARM = TAB_PACKAGES + TAB_SPLIT + TAB_ARCH_ARM\r
165 TAB_PACKAGES_EBC = TAB_PACKAGES + TAB_SPLIT + TAB_ARCH_EBC\r
166 \r
167 TAB_PCDS = 'Pcds'\r
168 TAB_PCDS_FIXED_AT_BUILD = 'FixedAtBuild'\r
169 TAB_PCDS_PATCHABLE_IN_MODULE = 'PatchableInModule'\r
170 TAB_PCDS_FEATURE_FLAG = 'FeatureFlag'\r
171 TAB_PCDS_DYNAMIC_EX = 'DynamicEx'\r
172 TAB_PCDS_DYNAMIC_EX_DEFAULT = 'DynamicExDefault'\r
173 TAB_PCDS_DYNAMIC_EX_VPD = 'DynamicExVpd'\r
174 TAB_PCDS_DYNAMIC_EX_HII = 'DynamicExHii'\r
175 TAB_PCDS_DYNAMIC = 'Dynamic'\r
176 TAB_PCDS_DYNAMIC_DEFAULT = 'DynamicDefault'\r
177 TAB_PCDS_DYNAMIC_VPD = 'DynamicVpd'\r
178 TAB_PCDS_DYNAMIC_HII = 'DynamicHii'\r
179 \r
180 PCD_DYNAMIC_TYPE_LIST = [TAB_PCDS_DYNAMIC, TAB_PCDS_DYNAMIC_DEFAULT, TAB_PCDS_DYNAMIC_VPD, TAB_PCDS_DYNAMIC_HII]\r
181 PCD_DYNAMIC_EX_TYPE_LIST = [TAB_PCDS_DYNAMIC_EX, TAB_PCDS_DYNAMIC_EX_DEFAULT, TAB_PCDS_DYNAMIC_EX_VPD, TAB_PCDS_DYNAMIC_EX_HII]\r
182 \r
183 ## Dynamic-ex PCD types\r
184 gDynamicExPcd = [TAB_PCDS_DYNAMIC_EX, TAB_PCDS_DYNAMIC_EX_DEFAULT, TAB_PCDS_DYNAMIC_EX_VPD, TAB_PCDS_DYNAMIC_EX_HII]\r
185 \r
186 TAB_PCDS_FIXED_AT_BUILD_NULL = TAB_PCDS + TAB_PCDS_FIXED_AT_BUILD\r
187 TAB_PCDS_FIXED_AT_BUILD_COMMON = TAB_PCDS + TAB_PCDS_FIXED_AT_BUILD + TAB_SPLIT + TAB_ARCH_COMMON\r
188 TAB_PCDS_FIXED_AT_BUILD_IA32 = TAB_PCDS + TAB_PCDS_FIXED_AT_BUILD + TAB_SPLIT + TAB_ARCH_IA32\r
189 TAB_PCDS_FIXED_AT_BUILD_X64 = TAB_PCDS + TAB_PCDS_FIXED_AT_BUILD + TAB_SPLIT + TAB_ARCH_X64\r
190 TAB_PCDS_FIXED_AT_BUILD_IPF = TAB_PCDS + TAB_PCDS_FIXED_AT_BUILD + TAB_SPLIT + TAB_ARCH_IPF\r
191 TAB_PCDS_FIXED_AT_BUILD_ARM = TAB_PCDS + TAB_PCDS_FIXED_AT_BUILD + TAB_SPLIT + TAB_ARCH_ARM\r
192 TAB_PCDS_FIXED_AT_BUILD_EBC = TAB_PCDS + TAB_PCDS_FIXED_AT_BUILD + TAB_SPLIT + TAB_ARCH_EBC\r
193 \r
194 TAB_PCDS_PATCHABLE_IN_MODULE_NULL = TAB_PCDS + TAB_PCDS_PATCHABLE_IN_MODULE\r
195 TAB_PCDS_PATCHABLE_IN_MODULE_COMMON = TAB_PCDS + TAB_PCDS_PATCHABLE_IN_MODULE + TAB_SPLIT + TAB_ARCH_COMMON\r
196 TAB_PCDS_PATCHABLE_IN_MODULE_IA32 = TAB_PCDS + TAB_PCDS_PATCHABLE_IN_MODULE + TAB_SPLIT + TAB_ARCH_IA32\r
197 TAB_PCDS_PATCHABLE_IN_MODULE_X64 = TAB_PCDS + TAB_PCDS_PATCHABLE_IN_MODULE + TAB_SPLIT + TAB_ARCH_X64\r
198 TAB_PCDS_PATCHABLE_IN_MODULE_IPF = TAB_PCDS + TAB_PCDS_PATCHABLE_IN_MODULE + TAB_SPLIT + TAB_ARCH_IPF\r
199 TAB_PCDS_PATCHABLE_IN_MODULE_ARM = TAB_PCDS + TAB_PCDS_PATCHABLE_IN_MODULE + TAB_SPLIT + TAB_ARCH_ARM\r
200 TAB_PCDS_PATCHABLE_IN_MODULE_EBC = TAB_PCDS + TAB_PCDS_PATCHABLE_IN_MODULE + TAB_SPLIT + TAB_ARCH_EBC\r
201 \r
202 TAB_PCDS_FEATURE_FLAG_NULL = TAB_PCDS + TAB_PCDS_FEATURE_FLAG\r
203 TAB_PCDS_FEATURE_FLAG_COMMON = TAB_PCDS + TAB_PCDS_FEATURE_FLAG + TAB_SPLIT + TAB_ARCH_COMMON\r
204 TAB_PCDS_FEATURE_FLAG_IA32 = TAB_PCDS + TAB_PCDS_FEATURE_FLAG + TAB_SPLIT + TAB_ARCH_IA32\r
205 TAB_PCDS_FEATURE_FLAG_X64 = TAB_PCDS + TAB_PCDS_FEATURE_FLAG + TAB_SPLIT + TAB_ARCH_X64\r
206 TAB_PCDS_FEATURE_FLAG_IPF = TAB_PCDS + TAB_PCDS_FEATURE_FLAG + TAB_SPLIT + TAB_ARCH_IPF\r
207 TAB_PCDS_FEATURE_FLAG_ARM = TAB_PCDS + TAB_PCDS_FEATURE_FLAG + TAB_SPLIT + TAB_ARCH_ARM\r
208 TAB_PCDS_FEATURE_FLAG_EBC = TAB_PCDS + TAB_PCDS_FEATURE_FLAG + TAB_SPLIT + TAB_ARCH_EBC\r
209 \r
210 TAB_PCDS_DYNAMIC_EX_NULL = TAB_PCDS + TAB_PCDS_DYNAMIC_EX\r
211 TAB_PCDS_DYNAMIC_EX_DEFAULT_NULL = TAB_PCDS + TAB_PCDS_DYNAMIC_EX_DEFAULT\r
212 TAB_PCDS_DYNAMIC_EX_HII_NULL = TAB_PCDS + TAB_PCDS_DYNAMIC_EX_HII\r
213 TAB_PCDS_DYNAMIC_EX_VPD_NULL = TAB_PCDS + TAB_PCDS_DYNAMIC_EX_VPD\r
214 TAB_PCDS_DYNAMIC_EX_COMMON = TAB_PCDS + TAB_PCDS_DYNAMIC_EX + TAB_SPLIT + TAB_ARCH_COMMON\r
215 TAB_PCDS_DYNAMIC_EX_IA32 = TAB_PCDS + TAB_PCDS_DYNAMIC_EX + TAB_SPLIT + TAB_ARCH_IA32\r
216 TAB_PCDS_DYNAMIC_EX_X64 = TAB_PCDS + TAB_PCDS_DYNAMIC_EX + TAB_SPLIT + TAB_ARCH_X64\r
217 TAB_PCDS_DYNAMIC_EX_IPF = TAB_PCDS + TAB_PCDS_DYNAMIC_EX + TAB_SPLIT + TAB_ARCH_IPF\r
218 TAB_PCDS_DYNAMIC_EX_ARM = TAB_PCDS + TAB_PCDS_DYNAMIC_EX + TAB_SPLIT + TAB_ARCH_ARM\r
219 TAB_PCDS_DYNAMIC_EX_EBC = TAB_PCDS + TAB_PCDS_DYNAMIC_EX + TAB_SPLIT + TAB_ARCH_EBC\r
220 \r
221 TAB_PCDS_DYNAMIC_NULL = TAB_PCDS + TAB_PCDS_DYNAMIC\r
222 TAB_PCDS_DYNAMIC_DEFAULT_NULL = TAB_PCDS + TAB_PCDS_DYNAMIC_DEFAULT\r
223 TAB_PCDS_DYNAMIC_HII_NULL = TAB_PCDS + TAB_PCDS_DYNAMIC_HII\r
224 TAB_PCDS_DYNAMIC_VPD_NULL = TAB_PCDS + TAB_PCDS_DYNAMIC_VPD\r
225 TAB_PCDS_DYNAMIC_COMMON = TAB_PCDS + TAB_PCDS_DYNAMIC + TAB_SPLIT + TAB_ARCH_COMMON\r
226 TAB_PCDS_DYNAMIC_IA32 = TAB_PCDS + TAB_PCDS_DYNAMIC + TAB_SPLIT + TAB_ARCH_IA32\r
227 TAB_PCDS_DYNAMIC_X64 = TAB_PCDS + TAB_PCDS_DYNAMIC + TAB_SPLIT + TAB_ARCH_X64\r
228 TAB_PCDS_DYNAMIC_IPF = TAB_PCDS + TAB_PCDS_DYNAMIC + TAB_SPLIT + TAB_ARCH_IPF\r
229 TAB_PCDS_DYNAMIC_ARM = TAB_PCDS + TAB_PCDS_DYNAMIC + TAB_SPLIT + TAB_ARCH_ARM\r
230 TAB_PCDS_DYNAMIC_EBC = TAB_PCDS + TAB_PCDS_DYNAMIC + TAB_SPLIT + TAB_ARCH_EBC\r
231 \r
232 TAB_PCD_DYNAMIC_TYPE_LIST = [TAB_PCDS_DYNAMIC_DEFAULT_NULL, TAB_PCDS_DYNAMIC_VPD_NULL, TAB_PCDS_DYNAMIC_HII_NULL]\r
233 TAB_PCD_DYNAMIC_EX_TYPE_LIST = [TAB_PCDS_DYNAMIC_EX_DEFAULT_NULL, TAB_PCDS_DYNAMIC_EX_VPD_NULL, TAB_PCDS_DYNAMIC_EX_HII_NULL]\r
234 \r
235 TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_PEI_PAGE_SIZE = 'PcdLoadFixAddressPeiCodePageNumber'\r
236 TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_PEI_PAGE_SIZE_DATA_TYPE = 'UINT32'\r
237 TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_DXE_PAGE_SIZE = 'PcdLoadFixAddressBootTimeCodePageNumber'\r
238 TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_DXE_PAGE_SIZE_DATA_TYPE = 'UINT32'\r
239 TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_RUNTIME_PAGE_SIZE = 'PcdLoadFixAddressRuntimeCodePageNumber'\r
240 TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_RUNTIME_PAGE_SIZE_DATA_TYPE = 'UINT32'\r
241 TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_SMM_PAGE_SIZE = 'PcdLoadFixAddressSmmCodePageNumber'\r
242 TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_SMM_PAGE_SIZE_DATA_TYPE = 'UINT32'\r
243 TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_LIST = [TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_PEI_PAGE_SIZE, \\r
244                                             TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_DXE_PAGE_SIZE, \\r
245                                             TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_RUNTIME_PAGE_SIZE, \\r
246                                             TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_SMM_PAGE_SIZE]\r
247 \r
248 TAB_DEPEX = 'Depex'\r
249 TAB_DEPEX_COMMON = TAB_DEPEX + TAB_SPLIT + TAB_ARCH_COMMON\r
250 TAB_DEPEX_IA32 = TAB_DEPEX + TAB_SPLIT + TAB_ARCH_IA32\r
251 TAB_DEPEX_X64 = TAB_DEPEX + TAB_SPLIT + TAB_ARCH_X64\r
252 TAB_DEPEX_IPF = TAB_DEPEX + TAB_SPLIT + TAB_ARCH_IPF\r
253 TAB_DEPEX_ARM = TAB_DEPEX + TAB_SPLIT + TAB_ARCH_ARM\r
254 TAB_DEPEX_EBC = TAB_DEPEX + TAB_SPLIT + TAB_ARCH_EBC\r
255 \r
256 TAB_SKUIDS = 'SkuIds'\r
257 \r
258 TAB_LIBRARIES = 'Libraries'\r
259 TAB_LIBRARIES_COMMON = TAB_LIBRARIES + TAB_SPLIT + TAB_ARCH_COMMON\r
260 TAB_LIBRARIES_IA32 = TAB_LIBRARIES + TAB_SPLIT + TAB_ARCH_IA32\r
261 TAB_LIBRARIES_X64 = TAB_LIBRARIES + TAB_SPLIT + TAB_ARCH_X64\r
262 TAB_LIBRARIES_IPF = TAB_LIBRARIES + TAB_SPLIT + TAB_ARCH_IPF\r
263 TAB_LIBRARIES_ARM = TAB_LIBRARIES + TAB_SPLIT + TAB_ARCH_ARM\r
264 TAB_LIBRARIES_EBC = TAB_LIBRARIES + TAB_SPLIT + TAB_ARCH_EBC\r
265 \r
266 TAB_COMPONENTS = 'Components'\r
267 TAB_COMPONENTS_COMMON = TAB_COMPONENTS + TAB_SPLIT + TAB_ARCH_COMMON\r
268 TAB_COMPONENTS_IA32 = TAB_COMPONENTS + TAB_SPLIT + TAB_ARCH_IA32\r
269 TAB_COMPONENTS_X64 = TAB_COMPONENTS + TAB_SPLIT + TAB_ARCH_X64\r
270 TAB_COMPONENTS_IPF = TAB_COMPONENTS + TAB_SPLIT + TAB_ARCH_IPF\r
271 TAB_COMPONENTS_ARM = TAB_COMPONENTS + TAB_SPLIT + TAB_ARCH_ARM\r
272 TAB_COMPONENTS_EBC = TAB_COMPONENTS + TAB_SPLIT + TAB_ARCH_EBC\r
273 \r
274 TAB_COMPONENTS_SOURCE_OVERRIDE_PATH = 'SOURCE_OVERRIDE_PATH'\r
275 \r
276 TAB_BUILD_OPTIONS = 'BuildOptions'\r
277 \r
278 TAB_DEFINE = 'DEFINE'\r
279 TAB_NMAKE = 'Nmake'\r
280 TAB_USER_EXTENSIONS = 'UserExtensions'\r
281 TAB_INCLUDE = '!include'\r
282 \r
283 #\r
284 # Common Define\r
285 #\r
286 TAB_COMMON_DEFINES = 'Defines'\r
287 \r
288 #\r
289 # Inf Definitions\r
290 #\r
291 TAB_INF_DEFINES = TAB_COMMON_DEFINES\r
292 TAB_INF_DEFINES_INF_VERSION = 'INF_VERSION'\r
293 TAB_INF_DEFINES_BASE_NAME = 'BASE_NAME'\r
294 TAB_INF_DEFINES_FILE_GUID = 'FILE_GUID'\r
295 TAB_INF_DEFINES_MODULE_TYPE = 'MODULE_TYPE'\r
296 TAB_INF_DEFINES_EFI_SPECIFICATION_VERSION = 'EFI_SPECIFICATION_VERSION'\r
297 TAB_INF_DEFINES_UEFI_SPECIFICATION_VERSION = 'UEFI_SPECIFICATION_VERSION'\r
298 TAB_INF_DEFINES_PI_SPECIFICATION_VERSION = 'PI_SPECIFICATION_VERSION'\r
299 TAB_INF_DEFINES_EDK_RELEASE_VERSION = 'EDK_RELEASE_VERSION'\r
300 TAB_INF_DEFINES_BINARY_MODULE = 'BINARY_MODULE'\r
301 TAB_INF_DEFINES_LIBRARY_CLASS = 'LIBRARY_CLASS'\r
302 TAB_INF_DEFINES_COMPONENT_TYPE = 'COMPONENT_TYPE'\r
303 TAB_INF_DEFINES_MAKEFILE_NAME = 'MAKEFILE_NAME'\r
304 TAB_INF_DEFINES_BUILD_NUMBER = 'BUILD_NUMBER'\r
305 TAB_INF_DEFINES_BUILD_TYPE = 'BUILD_TYPE'\r
306 TAB_INF_DEFINES_FFS_EXT = 'FFS_EXT'\r
307 TAB_INF_DEFINES_FV_EXT = 'FV_EXT'\r
308 TAB_INF_DEFINES_SOURCE_FV = 'SOURCE_FV'\r
309 TAB_INF_DEFINES_VERSION_NUMBER = 'VERSION_NUMBER'\r
310 TAB_INF_DEFINES_VERSION = 'VERSION'          # for R8 inf, the same as VERSION_NUMBER\r
311 TAB_INF_DEFINES_VERSION_STRING = 'VERSION_STRING'\r
312 TAB_INF_DEFINES_PCD_IS_DRIVER = 'PCD_IS_DRIVER'\r
313 TAB_INF_DEFINES_TIANO_R8_FLASHMAP_H = 'TIANO_R8_FLASHMAP_H'\r
314 TAB_INF_DEFINES_ENTRY_POINT = 'ENTRY_POINT'\r
315 TAB_INF_DEFINES_UNLOAD_IMAGE = 'UNLOAD_IMAGE'\r
316 TAB_INF_DEFINES_CONSTRUCTOR = 'CONSTRUCTOR'\r
317 TAB_INF_DEFINES_DESTRUCTOR = 'DESTRUCTOR'\r
318 TAB_INF_DEFINES_DEFINE = 'DEFINE'\r
319 TAB_INF_DEFINES_SPEC = 'SPEC'\r
320 TAB_INF_DEFINES_CUSTOM_MAKEFILE = 'CUSTOM_MAKEFILE'\r
321 TAB_INF_DEFINES_MACRO = '__MACROS__'\r
322 TAB_INF_DEFINES_SHADOW = 'SHADOW'\r
323 TAB_INF_FIXED_PCD = 'FixedPcd'\r
324 TAB_INF_FEATURE_PCD = 'FeaturePcd'\r
325 TAB_INF_PATCH_PCD = 'PatchPcd'\r
326 TAB_INF_PCD = 'Pcd'\r
327 TAB_INF_PCD_EX = 'PcdEx'\r
328 \r
329 #\r
330 # Dec Definitions\r
331 #\r
332 TAB_DEC_DEFINES = TAB_COMMON_DEFINES\r
333 TAB_DEC_DEFINES_DEC_SPECIFICATION = 'DEC_SPECIFICATION'\r
334 TAB_DEC_DEFINES_PACKAGE_NAME = 'PACKAGE_NAME'\r
335 TAB_DEC_DEFINES_PACKAGE_GUID = 'PACKAGE_GUID'\r
336 TAB_DEC_DEFINES_PACKAGE_VERSION = 'PACKAGE_VERSION'\r
337 \r
338 #\r
339 # Dsc Definitions\r
340 #\r
341 TAB_DSC_DEFINES = TAB_COMMON_DEFINES\r
342 TAB_DSC_DEFINES_PLATFORM_NAME = 'PLATFORM_NAME'\r
343 TAB_DSC_DEFINES_PLATFORM_GUID = 'PLATFORM_GUID'\r
344 TAB_DSC_DEFINES_PLATFORM_VERSION = 'PLATFORM_VERSION'\r
345 TAB_DSC_DEFINES_DSC_SPECIFICATION = 'DSC_SPECIFICATION'\r
346 TAB_DSC_DEFINES_OUTPUT_DIRECTORY = 'OUTPUT_DIRECTORY'\r
347 TAB_DSC_DEFINES_SUPPORTED_ARCHITECTURES = 'SUPPORTED_ARCHITECTURES'\r
348 TAB_DSC_DEFINES_BUILD_TARGETS = 'BUILD_TARGETS'\r
349 TAB_DSC_DEFINES_SKUID_IDENTIFIER = 'SKUID_IDENTIFIER'\r
350 TAB_DSC_DEFINES_FLASH_DEFINITION = 'FLASH_DEFINITION'\r
351 TAB_DSC_DEFINES_BUILD_NUMBER = 'BUILD_NUMBER'\r
352 TAB_DSC_DEFINES_MAKEFILE_NAME = 'MAKEFILE_NAME'\r
353 TAB_DSC_DEFINES_BS_BASE_ADDRESS = 'BsBaseAddress'\r
354 TAB_DSC_DEFINES_RT_BASE_ADDRESS = 'RtBaseAddress'\r
355 TAB_DSC_DEFINES_DEFINE = 'DEFINE'\r
356 TAB_FIX_LOAD_TOP_MEMORY_ADDRESS = 'FIX_LOAD_TOP_MEMORY_ADDRESS'\r
357 \r
358 #\r
359 # TargetTxt Definitions\r
360 #\r
361 TAB_TAT_DEFINES_ACTIVE_PLATFORM = 'ACTIVE_PLATFORM'\r
362 TAB_TAT_DEFINES_ACTIVE_MODULE = 'ACTIVE_MODULE'\r
363 TAB_TAT_DEFINES_TOOL_CHAIN_CONF = 'TOOL_CHAIN_CONF'\r
364 TAB_TAT_DEFINES_MULTIPLE_THREAD = 'MULTIPLE_THREAD'\r
365 TAB_TAT_DEFINES_MAX_CONCURRENT_THREAD_NUMBER = 'MAX_CONCURRENT_THREAD_NUMBER'\r
366 TAB_TAT_DEFINES_TARGET = 'TARGET'\r
367 TAB_TAT_DEFINES_TOOL_CHAIN_TAG = 'TOOL_CHAIN_TAG'\r
368 TAB_TAT_DEFINES_TARGET_ARCH = 'TARGET_ARCH'\r
369 TAB_TAT_DEFINES_BUILD_RULE_CONF = "BUILD_RULE_CONF"\r
370 \r
371 #\r
372 # ToolDef Definitions\r
373 #\r
374 TAB_TOD_DEFINES_TARGET = 'TARGET'\r
375 TAB_TOD_DEFINES_TOOL_CHAIN_TAG = 'TOOL_CHAIN_TAG'\r
376 TAB_TOD_DEFINES_TARGET_ARCH = 'TARGET_ARCH'\r
377 TAB_TOD_DEFINES_COMMAND_TYPE = 'COMMAND_TYPE'\r
378 TAB_TOD_DEFINES_FAMILY = 'FAMILY'\r
379 TAB_TOD_DEFINES_BUILDRULEFAMILY = 'BUILDRULEFAMILY'\r
380 \r
381 #\r
382 # Conditional Statements\r
383 #\r
384 TAB_IF = '!if'\r
385 TAB_END_IF = '!endif'\r
386 TAB_ELSE_IF = '!elseif'\r
387 TAB_ELSE = '!else'\r
388 TAB_IF_DEF = '!ifdef'\r
389 TAB_IF_N_DEF = '!ifndef'\r
390 TAB_IF_EXIST = '!if exist'\r
391 \r
392 #\r
393 # Unknown section\r
394 #\r
395 TAB_UNKNOWN = 'UNKNOWN'\r
396 \r
397 #\r
398 # Build database path\r
399 #\r
400 DATABASE_PATH = ":memory:" #"BuildDatabase.db"\r
401 \r
402 # used by ECC\r
403 MODIFIER_LIST = ['IN', 'OUT', 'OPTIONAL', 'UNALIGNED', 'EFI_RUNTIMESERVICE', 'EFI_BOOTSERVICE', 'EFIAPI']\r
404 \r
405 # Dependency Expression\r
406 DEPEX_SUPPORTED_OPCODE = ["BEFORE", "AFTER", "PUSH", "AND", "OR", "NOT", "END", "SOR", "TRUE", "FALSE", '(', ')']\r
407 \r
408 TAB_STATIC_LIBRARY = "STATIC-LIBRARY-FILE"\r
409 TAB_DYNAMIC_LIBRARY = "DYNAMIC-LIBRARY-FILE"\r
410 TAB_FRAMEWORK_IMAGE = "EFI-IMAGE-FILE"\r
411 TAB_C_CODE_FILE = "C-CODE-FILE"\r
412 TAB_C_HEADER_FILE = "C-HEADER-FILE"\r
413 TAB_UNICODE_FILE = "UNICODE-TEXT-FILE"\r
414 TAB_DEPENDENCY_EXPRESSION_FILE = "DEPENDENCY-EXPRESSION-FILE"\r
415 TAB_UNKNOWN_FILE = "UNKNOWN-TYPE-FILE"\r
416 TAB_DEFAULT_BINARY_FILE = "_BINARY_FILE_"\r
417 \r