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