]> git.proxmox.com Git - mirror_edk2.git/blame - UefiPayloadPkg/UefiPayloadPkg.dsc
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / UefiPayloadPkg / UefiPayloadPkg.dsc
CommitLineData
04af8bf2
DG
1## @file\r
2# Bootloader Payload Package\r
3#\r
4# Provides drivers and definitions to create uefi payload for bootloaders.\r
5#\r
6bc74286 6# Copyright (c) 2014 - 2023, Intel Corporation. All rights reserved.<BR>\r
d49fe0ca 7# Copyright (c) Microsoft Corporation.\r
04af8bf2
DG
8# SPDX-License-Identifier: BSD-2-Clause-Patent\r
9#\r
10##\r
11\r
12################################################################################\r
13#\r
14# Defines Section - statements that will be processed to create a Makefile.\r
15#\r
16################################################################################\r
17[Defines]\r
18 PLATFORM_NAME = UefiPayloadPkg\r
19 PLATFORM_GUID = F71608AB-D63D-4491-B744-A99998C8CD96\r
20 PLATFORM_VERSION = 0.1\r
21 DSC_SPECIFICATION = 0x00010005\r
22 SUPPORTED_ARCHITECTURES = IA32|X64\r
23 BUILD_TARGETS = DEBUG|RELEASE|NOOPT\r
24 SKUID_IDENTIFIER = DEFAULT\r
25 OUTPUT_DIRECTORY = Build/UefiPayloadPkgX64\r
26 FLASH_DEFINITION = UefiPayloadPkg/UefiPayloadPkg.fdf\r
be282b14 27 PCD_DYNAMIC_AS_DYNAMICEX = TRUE\r
04af8bf2
DG
28\r
29 DEFINE SOURCE_DEBUG_ENABLE = FALSE\r
33a32936 30 DEFINE PS2_KEYBOARD_ENABLE = FALSE\r
d60915b7
ZL
31 DEFINE RAM_DISK_ENABLE = FALSE\r
32 DEFINE SIO_BUS_ENABLE = FALSE\r
82f727c4 33 DEFINE UNIVERSAL_PAYLOAD = FALSE\r
19ee56c4 34 DEFINE SECURITY_STUB_ENABLE = TRUE\r
b80c17b6 35 DEFINE SMM_SUPPORT = FALSE\r
55637a28 36 DEFINE PLATFORM_BOOT_TIMEOUT = 3\r
091b6a11 37 DEFINE ABOVE_4G_MEMORY = TRUE\r
af74efe4 38 DEFINE BOOT_MANAGER_ESCAPE = FALSE\r
e21b2039
JL
39 DEFINE ATA_ENABLE = TRUE\r
40 DEFINE SD_ENABLE = TRUE\r
41 DEFINE PS2_MOUSE_ENABLE = TRUE\r
a47241f1 42 DEFINE CRYPTO_PROTOCOL_SUPPORT = FALSE\r
79a705fb 43 DEFINE SD_MMC_TIMEOUT = 1000000\r
f26b70cb 44 DEFINE USE_CBMEM_FOR_CONSOLE = FALSE\r
79aab22f 45 DEFINE BOOTSPLASH_IMAGE = FALSE\r
c15c9fa4 46 DEFINE NVME_ENABLE = TRUE\r
e21b2039
JL
47\r
48 #\r
49 # NULL: NullMemoryTestDxe\r
50 # GENERIC: GenericMemoryTestDxe\r
51 #\r
52 DEFINE MEMORY_TEST = NULL\r
04af8bf2
DG
53 #\r
54 # SBL: UEFI payload for Slim Bootloader\r
55 # COREBOOT: UEFI payload for coreboot\r
56 #\r
b80c17b6 57 DEFINE BOOTLOADER = SBL\r
04af8bf2
DG
58\r
59 #\r
60 # CPU options\r
61 #\r
442e46d3 62 DEFINE MAX_LOGICAL_PROCESSORS = 256\r
04af8bf2
DG
63\r
64 #\r
65 # PCI options\r
66 #\r
3900a63e 67 DEFINE PCIE_BASE_SUPPORT = TRUE\r
04af8bf2
DG
68\r
69 #\r
70 # Serial port set up\r
71 #\r
72 DEFINE BAUD_RATE = 115200\r
73 DEFINE SERIAL_CLOCK_RATE = 1843200\r
74 DEFINE SERIAL_LINE_CONTROL = 3 # 8-bits, no parity\r
75 DEFINE SERIAL_HARDWARE_FLOW_CONTROL = FALSE\r
76 DEFINE SERIAL_DETECT_CABLE = FALSE\r
77 DEFINE SERIAL_FIFO_CONTROL = 7 # Enable FIFO\r
04af8bf2
DG
78 DEFINE UART_DEFAULT_BAUD_RATE = $(BAUD_RATE)\r
79 DEFINE UART_DEFAULT_DATA_BITS = 8\r
80 DEFINE UART_DEFAULT_PARITY = 1\r
81 DEFINE UART_DEFAULT_STOP_BITS = 1\r
82 DEFINE DEFAULT_TERMINAL_TYPE = 0\r
83\r
48aa2edf
PR
84 # Enabling the serial terminal will slow down the boot menu redering!\r
85 DEFINE DISABLE_SERIAL_TERMINAL = FALSE\r
86\r
04af8bf2
DG
87 #\r
88 # typedef struct {\r
89 # UINT16 VendorId; ///< Vendor ID to match the PCI device. The value 0xFFFF terminates the list of entries.\r
90 # UINT16 DeviceId; ///< Device ID to match the PCI device\r
91 # UINT32 ClockRate; ///< UART clock rate. Set to 0 for default clock rate of 1843200 Hz\r
92 # UINT64 Offset; ///< The byte offset into to the BAR\r
93 # UINT8 BarIndex; ///< Which BAR to get the UART base address\r
94 # UINT8 RegisterStride; ///< UART register stride in bytes. Set to 0 for default register stride of 1 byte.\r
95 # UINT16 ReceiveFifoDepth; ///< UART receive FIFO depth in bytes. Set to 0 for a default FIFO depth of 16 bytes.\r
96 # UINT16 TransmitFifoDepth; ///< UART transmit FIFO depth in bytes. Set to 0 for a default FIFO depth of 16 bytes.\r
97 # UINT8 Reserved[2];\r
98 # } PCI_SERIAL_PARAMETER;\r
99 #\r
100 # Vendor FFFF Device 0000 Prog Interface 1, BAR #0, Offset 0, Stride = 1, Clock 1843200 (0x1c2000)\r
101 #\r
102 # [Vendor] [Device] [----ClockRate---] [------------Offset-----------] [Bar] [Stride] [RxFifo] [TxFifo] [Rsvd] [Vendor]\r
103 DEFINE PCI_SERIAL_PARAMETERS = {0xff,0xff, 0x00,0x00, 0x0,0x20,0x1c,0x00, 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, 0x00, 0x01, 0x0,0x0, 0x0,0x0, 0x0,0x0, 0xff,0xff}\r
104\r
105 #\r
106 # Shell options: [BUILD_SHELL, MIN_BIN, NONE, UEFI_BIN]\r
107 #\r
108 DEFINE SHELL_TYPE = BUILD_SHELL\r
109\r
b80c17b6
GD
110 #\r
111 # EMU: UEFI payload with EMU variable\r
112 # SPI: UEFI payload with SPI NV variable support\r
113 # NONE: UEFI payload with no variable modules\r
114 #\r
115 DEFINE VARIABLE_SUPPORT = EMU\r
116\r
2db0ed93 117 DEFINE DISABLE_RESET_SYSTEM = FALSE\r
d248516b 118 DEFINE NETWORK_DRIVER_ENABLE = FALSE\r
2db0ed93 119\r
b40bdd6e
ZL
120 # Dfine the maximum size of the capsule image without a reset flag that the platform can support.\r
121 DEFINE MAX_SIZE_NON_POPULATE_CAPSULE = 0xa00000\r
122\r
123 # Define RTC related register.\r
124 DEFINE RTC_INDEX_REGISTER = 0x70\r
125 DEFINE RTC_TARGET_REGISTER = 0x71\r
126\r
672bd1c7 127 DEFINE SERIAL_DRIVER_ENABLE = TRUE\r
2527723d 128 DEFINE PERFORMANCE_MEASUREMENT_ENABLE = FALSE\r
672bd1c7 129\r
a867f3a7
ZL
130 # For recent X86 CPU, 0x15 CPUID instruction will return Time Stamp Counter Frequence.\r
131 # This is how BaseCpuTimerLib works, and a recommended way to get Frequence, so set the default value as TRUE.\r
132 # Note: for emulation platform such as QEMU, this may not work and should set it as FALSE\r
133 DEFINE CPU_TIMER_LIB_ENABLE = TRUE\r
58019100 134\r
54c8d5e4
K
135 DEFINE MULTIPLE_DEBUG_PORT_SUPPORT = FALSE\r
136\r
04af8bf2
DG
137[BuildOptions]\r
138 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES\r
f26b70cb 139!if $(USE_CBMEM_FOR_CONSOLE) == FALSE\r
04af8bf2
DG
140 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG\r
141 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG\r
142 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG\r
f26b70cb 143!endif\r
04af8bf2 144\r
7c4ab1c2
GD
145[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]\r
146 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000\r
147 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000\r
148 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000\r
149 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096\r
150 MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096\r
04af8bf2
DG
151\r
152################################################################################\r
153#\r
154# SKU Identification section - list of all SKU IDs supported by this Platform.\r
155#\r
156################################################################################\r
157[SkuIds]\r
158 0|DEFAULT\r
159\r
160################################################################################\r
161#\r
162# Library Class section - list of all Library Classes needed by this Platform.\r
163#\r
164################################################################################\r
08c65f7c
DB
165\r
166!include MdePkg/MdeLibs.dsc.inc\r
167\r
04af8bf2
DG
168[LibraryClasses]\r
169 #\r
170 # Entry point\r
171 #\r
04af8bf2
DG
172 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
173 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf\r
174 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf\r
175\r
176 #\r
177 # Basic\r
178 #\r
179 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf\r
180 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf\r
181 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf\r
182 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
183 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf\r
184 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf\r
3900a63e 185!if $(PCIE_BASE_SUPPORT) == FALSE\r
04af8bf2
DG
186 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf\r
187 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf\r
188!else\r
189 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf\r
190 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf\r
191!endif\r
3900a63e
RN
192 PciSegmentLib|MdePkg/Library/PciSegmentLibSegmentInfo/BasePciSegmentLibSegmentInfo.inf\r
193 PciSegmentInfoLib|UefiPayloadPkg/Library/PciSegmentInfoLibAcpiBoardInfo/PciSegmentInfoLibAcpiBoardInfo.inf\r
04af8bf2
DG
194 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf\r
195 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
196 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf\r
6d95eff8 197 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf\r
82f727c4 198 DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLib/DxeHobListLib.inf\r
a47241f1 199!if $(CRYPTO_PROTOCOL_SUPPORT) == TRUE\r
f6f3cc7e
PH
200 BaseCryptLib|CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf\r
201 TlsLib|CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf\r
a47241f1
PH
202!else\r
203 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
204 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf\r
205!endif\r
d248516b
S
206 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r
207 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf\r
208 RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf\r
82f727c4 209 HobLib|UefiPayloadPkg/Library/DxeHobLib/DxeHobLib.inf\r
04af8bf2
DG
210\r
211 #\r
212 # UEFI & PI\r
213 #\r
214 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r
215 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf\r
216 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r
217 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf\r
218 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf\r
219 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf\r
220 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
221 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf\r
04af8bf2
DG
222 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf\r
223 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf\r
224 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf\r
225 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf\r
226\r
227 #\r
228 # Generic Modules\r
229 #\r
230 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf\r
231 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
232 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r
08522341
KL
233 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibFmp/DxeRuntimeCapsuleLib.inf\r
234 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf\r
04af8bf2
DG
235 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf\r
236 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf\r
79aab22f 237 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf\r
04af8bf2
DG
238 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf\r
239 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf\r
240\r
241 #\r
242 # CPU\r
243 #\r
244 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf\r
245 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf\r
83c7f817 246 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf\r
04af8bf2
DG
247\r
248 #\r
249 # Platform\r
250 #\r
a867f3a7 251!if $(CPU_TIMER_LIB_ENABLE) == TRUE && $(UNIVERSAL_PAYLOAD) == TRUE\r
2527723d
ZL
252 TimerLib|UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf\r
253!else\r
04af8bf2 254 TimerLib|UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf\r
2527723d 255!endif\r
04af8bf2 256 ResetSystemLib|UefiPayloadPkg/Library/ResetSystemLib/ResetSystemLib.inf\r
f26b70cb
BD
257!if $(USE_CBMEM_FOR_CONSOLE) == TRUE\r
258 SerialPortLib|UefiPayloadPkg/Library/CbSerialPortLib/CbSerialPortLib.inf\r
259 PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf\r
260!else\r
04af8bf2
DG
261 SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf\r
262 PlatformHookLib|UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf\r
f26b70cb 263!endif\r
04af8bf2
DG
264 PlatformBootManagerLib|UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf\r
265 IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf\r
266\r
267 #\r
268 # Misc\r
269 #\r
3e130e40 270 DebugPrintErrorLevelLib|UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintErrorLevelLibHob.inf\r
04af8bf2
DG
271 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf\r
272!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
273 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf\r
274 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf\r
275!else\r
276 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf\r
277 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf\r
278!endif\r
279 PlatformSupportLib|UefiPayloadPkg/Library/PlatformSupportLibNull/PlatformSupportLibNull.inf\r
6b69f73b
ZL
280!if $(UNIVERSAL_PAYLOAD) == FALSE\r
281 !if $(BOOTLOADER) == "COREBOOT"\r
282 BlParseLib|UefiPayloadPkg/Library/CbParseLib/CbParseLib.inf\r
283 !else\r
284 BlParseLib|UefiPayloadPkg/Library/SblParseLib/SblParseLib.inf\r
285 !endif\r
04af8bf2
DG
286!endif\r
287\r
0023e35c 288 DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf\r
04af8bf2
DG
289 LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf\r
290 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf\r
291 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf\r
b80c17b6 292!if $(VARIABLE_SUPPORT) == "EMU"\r
04af8bf2 293 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf\r
b80c17b6
GD
294!elseif $(VARIABLE_SUPPORT) == "SPI"\r
295 PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf\r
296 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf\r
297 S3BootScriptLib|MdePkg/Library/BaseS3BootScriptLibNull/BaseS3BootScriptLibNull.inf\r
298 MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf\r
299!endif\r
04af8bf2 300 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf\r
d49fe0ca
BB
301 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf\r
302 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf\r
1f026aba 303 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf\r
a89f558d 304 CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf\r
0023e35c 305 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
04af8bf2 306\r
444260d4
SR
307[LibraryClasses.common]\r
308!if $(BOOTSPLASH_IMAGE)\r
309 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf\r
310 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf\r
311!endif\r
312\r
7c4ab1c2 313[LibraryClasses.common.SEC]\r
82f727c4 314 HobLib|UefiPayloadPkg/Library/PayloadEntryHobLib/HobLib.inf\r
04af8bf2 315 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
82f727c4 316 DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.inf\r
0023e35c 317 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
04af8bf2
DG
318\r
319[LibraryClasses.common.DXE_CORE]\r
82f727c4 320 DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.inf\r
04af8bf2
DG
321 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
322 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf\r
323 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf\r
324 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf\r
325 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
326!if $(SOURCE_DEBUG_ENABLE)\r
327 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf\r
328!endif\r
329 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
2527723d
ZL
330!if $(PERFORMANCE_MEASUREMENT_ENABLE)\r
331 PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf\r
332!endif\r
04af8bf2
DG
333\r
334[LibraryClasses.common.DXE_DRIVER]\r
335 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
04af8bf2
DG
336 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
337 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf\r
338 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
339!if $(SOURCE_DEBUG_ENABLE)\r
340 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf\r
341!endif\r
342 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
6bc74286 343 CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf\r
04af8bf2 344 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf\r
2527723d
ZL
345!if $(PERFORMANCE_MEASUREMENT_ENABLE)\r
346 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf\r
347!endif\r
04af8bf2
DG
348\r
349[LibraryClasses.common.DXE_RUNTIME_DRIVER]\r
350 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
04af8bf2
DG
351 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
352 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf\r
d49fe0ca 353 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf\r
2527723d
ZL
354!if $(PERFORMANCE_MEASUREMENT_ENABLE)\r
355 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf\r
356!endif\r
04af8bf2
DG
357\r
358[LibraryClasses.common.UEFI_DRIVER,LibraryClasses.common.UEFI_APPLICATION]\r
359 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
360 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
361 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
2527723d
ZL
362!if $(PERFORMANCE_MEASUREMENT_ENABLE)\r
363 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf\r
364!endif\r
04af8bf2 365\r
b80c17b6
GD
366[LibraryClasses.common.SMM_CORE]\r
367!if $(SMM_SUPPORT) == TRUE\r
368 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
369 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf\r
370\r
371 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf\r
372 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf\r
373 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
374 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf\r
2527723d
ZL
375!if $(PERFORMANCE_MEASUREMENT_ENABLE)\r
376 PerformanceLib|MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.inf\r
377!endif\r
b80c17b6
GD
378!endif\r
379\r
380[LibraryClasses.common.DXE_SMM_DRIVER]\r
381!if $(SMM_SUPPORT) == TRUE\r
382 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
383\r
384 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf\r
385 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf\r
386 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
387 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf\r
0023e35c 388 DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf\r
b80c17b6
GD
389 SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf\r
390 SmmCpuFeaturesLib|UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf\r
391 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf\r
392 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf\r
63e155f2 393 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf\r
2527723d
ZL
394!if $(PERFORMANCE_MEASUREMENT_ENABLE)\r
395 PerformanceLib|MdeModulePkg/Library/SmmPerformanceLib/SmmPerformanceLib.inf\r
396!endif\r
b80c17b6
GD
397!endif\r
398!if $(VARIABLE_SUPPORT) == "SPI"\r
399 SpiFlashLib|UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.inf\r
400 FlashDeviceLib|UefiPayloadPkg/Library/FlashDeviceLib/FlashDeviceLib.inf\r
401 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf\r
402!endif\r
403\r
04af8bf2
DG
404################################################################################\r
405#\r
406# Pcd Section - list of all EDK II PCD Entries defined by this Platform.\r
407#\r
408################################################################################\r
409[PcdsFeatureFlag]\r
04af8bf2
DG
410 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE\r
411 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r
412 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE\r
3eb72b30
ZL
413 ## This PCD specified whether ACPI SDT protocol is installed.\r
414 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE\r
ac6e5d6b
ZL
415 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE\r
416 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDegradeResourceForOptionRom|FALSE\r
b80c17b6 417 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmEnableBspElection|FALSE\r
04af8bf2
DG
418\r
419[PcdsFixedAtBuild]\r
0023e35c 420 gEfiMdePkgTokenSpaceGuid.PcdHardwareErrorRecordLevel|1\r
04af8bf2
DG
421 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x10000\r
422 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000\r
423 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x10000\r
b80c17b6
GD
424!if $(VARIABLE_SUPPORT) == "EMU"\r
425 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable |TRUE\r
426!else\r
427 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable |FALSE\r
428!endif\r
04af8bf2
DG
429\r
430 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0\r
763e0f0a 431 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE\r
04af8bf2 432 gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE\r
04af8bf2 433\r
27cb64ff 434 gUefiPayloadPkgTokenSpaceGuid.PcdPcdDriverFile|{ 0x57, 0x72, 0xcf, 0x80, 0xab, 0x87, 0xf9, 0x47, 0xa3, 0xfe, 0xD5, 0x0B, 0x76, 0xd8, 0x95, 0x41 }\r
04af8bf2
DG
435\r
436!if $(SOURCE_DEBUG_ENABLE)\r
437 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2\r
438!endif\r
b80c17b6 439 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000\r
2527723d
ZL
440 gEfiMdeModulePkgTokenSpaceGuid.PcdEdkiiFpdtStringRecordEnableOnly| TRUE\r
441!if $(PERFORMANCE_MEASUREMENT_ENABLE)\r
442 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask | 0x1\r
443!endif\r
79a705fb 444 gEfiMdeModulePkgTokenSpaceGuid.PcdSdMmcGenericTimeoutValue|$(SD_MMC_TIMEOUT)\r
04af8bf2 445\r
091b6a11 446 gUefiPayloadPkgTokenSpaceGuid.PcdDispatchModuleAbove4GMemory|$(ABOVE_4G_MEMORY)\r
af74efe4 447 gUefiPayloadPkgTokenSpaceGuid.PcdBootManagerEscape|$(BOOT_MANAGER_ESCAPE)\r
79aab22f 448\r
cc2db6eb 449 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1800000\r
091b6a11 450\r
a47241f1 451!if $(CRYPTO_PROTOCOL_SUPPORT) == TRUE\r
f6f3cc7e
PH
452 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY\r
453 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Md5.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY\r
454 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY\r
455 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Dh.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY\r
456 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Random.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY\r
457 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY\r
458 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY\r
459 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY\r
460 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY\r
461 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha512.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY\r
462 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY\r
f6f3cc7e
PH
463 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.GetContextSize | TRUE\r
464 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.Init | TRUE\r
465 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcEncrypt | TRUE\r
466 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcDecrypt | TRUE\r
f6f3cc7e
PH
467 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sm3.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY\r
468 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Hkdf.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY\r
469 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Tls.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY\r
470 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsSet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY\r
471 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsGet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY\r
a47241f1 472!endif\r
f6f3cc7e 473\r
bda3546c 474[PcdsPatchableInModule.X64]\r
76191052 475!if $(NETWORK_DRIVER_ENABLE) == TRUE\r
bda3546c 476 gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE\r
76191052 477!endif\r
bda3546c 478\r
04af8bf2 479[PcdsPatchableInModule.common]\r
19a541d7 480 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }\r
04af8bf2
DG
481 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x7\r
482 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F\r
f26b70cb
BD
483!if $(USE_CBMEM_FOR_CONSOLE) == FALSE\r
484 !if $(SOURCE_DEBUG_ENABLE)\r
485 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17\r
486 !else\r
487 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F\r
488 !endif\r
04af8bf2 489!else\r
f26b70cb
BD
490 !if $(TARGET) == DEBUG\r
491 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x07\r
492 !else\r
493 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x03\r
494 !endif\r
04af8bf2 495!endif\r
b40bdd6e 496 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|$(MAX_SIZE_NON_POPULATE_CAPSULE)\r
04af8bf2
DG
497 #\r
498 # The following parameters are set by Library/PlatformHookLib\r
499 #\r
500 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE\r
317d84ab 501 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0\r
04af8bf2
DG
502 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialBaudRate|$(BAUD_RATE)\r
503 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterStride|1\r
504\r
505 #\r
506 # Enable these parameters to be set on the command line\r
507 #\r
508 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|$(SERIAL_CLOCK_RATE)\r
509 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialLineControl|$(SERIAL_LINE_CONTROL)\r
510 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|$(SERIAL_HARDWARE_FLOW_CONTROL)\r
511 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialDetectCable|$(SERIAL_DETECT_CABLE)\r
512 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialFifoControl|$(SERIAL_FIFO_CONTROL)\r
04af8bf2 513\r
04af8bf2
DG
514 gEfiMdeModulePkgTokenSpaceGuid.PcdPciSerialParameters|$(PCI_SERIAL_PARAMETERS)\r
515\r
516 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|$(MAX_LOGICAL_PROCESSORS)\r
ac6e5d6b 517 gUefiCpuPkgTokenSpaceGuid.PcdCpuNumberOfReservedVariableMtrrs|0\r
422e5d2f 518 gUefiPayloadPkgTokenSpaceGuid.PcdBootloaderParameter|0\r
04af8bf2
DG
519\r
520################################################################################\r
521#\r
fa24b6ed 522# Pcd DynamicEx Section - list of all EDK II PCD Entries defined by this Platform\r
04af8bf2
DG
523#\r
524################################################################################\r
525\r
fa24b6ed 526[PcdsDynamicExDefault]\r
d497eace
ZL
527 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|$(UART_DEFAULT_BAUD_RATE)\r
528 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits|$(UART_DEFAULT_DATA_BITS)\r
529 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultParity|$(UART_DEFAULT_PARITY)\r
530 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultStopBits|$(UART_DEFAULT_STOP_BITS)\r
531 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|$(DEFAULT_TERMINAL_TYPE)\r
560f9bb0 532 gEfiMdeModulePkgTokenSpaceGuid.PcdAriSupport|TRUE\r
533 gEfiMdeModulePkgTokenSpaceGuid.PcdMrIovSupport|FALSE\r
534 gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSupport|TRUE\r
535 gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSystemPageSize|0x1\r
536 gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds|50000\r
537 gUefiCpuPkgTokenSpaceGuid.PcdCpuApLoopMode|1\r
538 gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchAddress|0x0\r
539 gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchRegionSize|0x0\r
f26b70cb 540!if ($(TARGET) == DEBUG || $(USE_CBMEM_FOR_CONSOLE) == TRUE)\r
d497eace
ZL
541 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE\r
542!else\r
543 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE\r
544!endif\r
caa139fe 545 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE\r
04af8bf2
DG
546 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0\r
547 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0\r
548 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0\r
549 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0\r
55637a28 550 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|$(PLATFORM_BOOT_TIMEOUT)\r
b80c17b6
GD
551!if $(VARIABLE_SUPPORT) == "SPI"\r
552 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize |0\r
553 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0\r
554 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize |0\r
555 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase |0\r
556!endif\r
557 # Disable SMM S3 script\r
558 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE\r
04af8bf2
DG
559\r
560 ## This PCD defines the video horizontal resolution.\r
561 # This PCD could be set to 0 then video resolution could be at highest resolution.\r
562 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0\r
563 ## This PCD defines the video vertical resolution.\r
564 # This PCD could be set to 0 then video resolution could be at highest resolution.\r
565 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0\r
566\r
567 ## The PCD is used to specify the video horizontal resolution of text setup.\r
568 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|0\r
569 ## The PCD is used to specify the video vertical resolution of text setup.\r
570 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|0\r
571\r
572 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|31\r
573 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|100\r
3900a63e 574 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0\r
8028b290 575 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseSize|0\r
fa24b6ed
ZL
576 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0\r
577 gEfiMdeModulePkgTokenSpaceGuid.PcdTestKeyUsed|FALSE\r
578 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0\r
99de2e7e 579 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE\r
04af8bf2 580\r
d8d829b8
KL
581 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister|$(RTC_INDEX_REGISTER)\r
582 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister|$(RTC_TARGET_REGISTER)\r
583\r
04af8bf2
DG
584################################################################################\r
585#\r
586# Components Section - list of all EDK II Modules needed by this Platform.\r
587#\r
588################################################################################\r
04af8bf2 589\r
f0fe55bc 590!if "IA32" in "$(ARCH)"\r
7c4ab1c2 591 [Components.IA32]\r
6b69f73b
ZL
592 !if $(UNIVERSAL_PAYLOAD) == TRUE\r
593 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf\r
594 !else\r
7c4ab1c2 595 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf\r
6b69f73b 596 !endif\r
7c4ab1c2
GD
597!else\r
598 [Components.X64]\r
6b69f73b
ZL
599 !if $(UNIVERSAL_PAYLOAD) == TRUE\r
600 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf\r
601 !else\r
7c4ab1c2 602 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf\r
6b69f73b 603 !endif\r
7c4ab1c2 604!endif\r
04af8bf2 605\r
d248516b
S
606#\r
607# UEFI network modules\r
608#\r
609!if $(NETWORK_DRIVER_ENABLE) == TRUE\r
76191052
GD
610[Defines]\r
611 DEFINE PLATFORMX64_ENABLE = TRUE\r
d248516b
S
612 !include NetworkPkg/Network.dsc.inc\r
613!endif\r
614\r
04af8bf2
DG
615[Components.X64]\r
616 #\r
617 # DXE Core\r
618 #\r
619 MdeModulePkg/Core/Dxe/DxeMain.inf {\r
620 <LibraryClasses>\r
54c8d5e4
K
621 !if $(MULTIPLE_DEBUG_PORT_SUPPORT) == TRUE\r
622 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
623 SerialPortLib|UefiPayloadPkg/Library/BaseSerialPortLibHob/BaseSerialPortLibHob.inf\r
624 !endif\r
04af8bf2
DG
625 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
626 }\r
627\r
628 #\r
629 # Components that produce the architectural protocols\r
630 #\r
19ee56c4 631!if $(SECURITY_STUB_ENABLE) == TRUE\r
04af8bf2 632 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
19ee56c4 633!endif\r
04af8bf2
DG
634 UefiCpuPkg/CpuDxe/CpuDxe.inf\r
635 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf\r
79aab22f
SR
636!if $(BOOTSPLASH_IMAGE)\r
637 MdeModulePkg/Logo/LogoDxe.inf\r
638!endif\r
04af8bf2
DG
639 MdeModulePkg/Application/UiApp/UiApp.inf {\r
640 <LibraryClasses>\r
641 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf\r
642 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf\r
643 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf\r
644 }\r
96529213
FN
645 MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf {\r
646 <LibraryClasses>\r
647 NULL|UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf\r
648 }\r
04af8bf2
DG
649 PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf\r
650 MdeModulePkg/Universal/Metronome/Metronome.inf\r
651 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
652 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
653 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
654 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
2db0ed93 655!if $(DISABLE_RESET_SYSTEM) == FALSE\r
04af8bf2 656 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf\r
2db0ed93 657!endif\r
04af8bf2 658 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf\r
2db0ed93 659!if $(EMU_VARIABLE_ENABLE) == TRUE\r
04af8bf2 660 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r
2db0ed93 661!endif\r
04af8bf2
DG
662 #\r
663 # Following are the DXE drivers\r
664 #\r
665 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {\r
666 <LibraryClasses>\r
667 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
668 }\r
669\r
670 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf\r
671 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf\r
672 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf\r
673 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
e21b2039
JL
674!if $(MEMORY_TEST) == "GENERIC"\r
675 MdeModulePkg/Universal/MemoryTest/GenericMemoryTestDxe/GenericMemoryTestDxe.inf\r
676!elseif $(MEMORY_TEST) == "NULL"\r
04af8bf2 677 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf\r
e21b2039 678!endif\r
04af8bf2
DG
679 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
680 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
681 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
851785ea
S
682 MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf\r
683 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf\r
04af8bf2
DG
684\r
685 UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf\r
686\r
687 #\r
688 # SMBIOS Support\r
689 #\r
690 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf\r
691\r
692 #\r
693 # ACPI Support\r
694 #\r
695 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r
444260d4
SR
696!if $(BOOTSPLASH_IMAGE)\r
697 MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf\r
698 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf\r
699!endif\r
04af8bf2
DG
700\r
701 #\r
702 # PCI Support\r
703 #\r
704 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf\r
705 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {\r
706 <LibraryClasses>\r
707 PciHostBridgeLib|UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf\r
708 }\r
709\r
710 #\r
711 # SCSI/ATA/IDE/DISK Support\r
712 #\r
713 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
714 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
715 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
716 FatPkg/EnhancedFatDxe/Fat.inf\r
e21b2039 717!if $(ATA_ENABLE) == TRUE\r
04af8bf2
DG
718 MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf\r
719 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf\r
e21b2039 720!endif\r
04af8bf2
DG
721 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf\r
722 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
723 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r
c15c9fa4 724!if $(NVME_ENABLE) == TRUE\r
cf4cbe19 725 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf\r
c15c9fa4 726!endif\r
04af8bf2 727\r
d60915b7
ZL
728!if $(RAM_DISK_ENABLE) == TRUE\r
729 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf\r
730!endif\r
04af8bf2
DG
731 #\r
732 # SD/eMMC Support\r
733 #\r
e21b2039 734!if $(SD_ENABLE) == TRUE\r
04af8bf2
DG
735 MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf\r
736 MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf\r
737 MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf\r
e21b2039 738!endif\r
04af8bf2
DG
739\r
740 #\r
741 # Usb Support\r
742 #\r
743 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf\r
744 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf\r
745 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf\r
746 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf\r
747 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf\r
748 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf\r
851785ea 749 MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf\r
04af8bf2
DG
750\r
751 #\r
752 # ISA Support\r
753 #\r
672bd1c7 754!if $(SERIAL_DRIVER_ENABLE) == TRUE\r
04af8bf2 755 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf\r
672bd1c7 756!endif\r
d60915b7 757!if $(SIO_BUS_ENABLE) == TRUE\r
33a32936 758 OvmfPkg/SioBusDxe/SioBusDxe.inf\r
d60915b7
ZL
759!endif\r
760!if $(PS2_KEYBOARD_ENABLE) == TRUE\r
33a32936
DG
761 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf\r
762!endif\r
e21b2039 763!if $(PS2_MOUSE_ENABLE) == TRUE\r
851785ea 764 MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf\r
e21b2039 765!endif\r
04af8bf2
DG
766\r
767 #\r
768 # Console Support\r
769 #\r
770 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
771 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
772 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r
d9a40845 773!if $(DISABLE_SERIAL_TERMINAL) == FALSE\r
04af8bf2 774 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
d9a40845 775!endif\r
04af8bf2 776 UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf\r
2527723d
ZL
777!if $(PERFORMANCE_MEASUREMENT_ENABLE)\r
778 MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.inf\r
779!endif\r
b80c17b6
GD
780 #\r
781 # SMM Support\r
782 #\r
783!if $(SMM_SUPPORT) == TRUE\r
784 UefiPayloadPkg/SmmAccessDxe/SmmAccessDxe.inf\r
785 UefiPayloadPkg/SmmControlRuntimeDxe/SmmControlRuntimeDxe.inf\r
786 UefiPayloadPkg/BlSupportSmm/BlSupportSmm.inf\r
787 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf\r
788 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf\r
789 UefiPayloadPkg/PchSmiDispatchSmm/PchSmiDispatchSmm.inf\r
790 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf\r
791 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf\r
2527723d
ZL
792!if $(PERFORMANCE_MEASUREMENT_ENABLE)\r
793 MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableSmm/FirmwarePerformanceSmm.inf\r
794!endif\r
b80c17b6
GD
795!endif\r
796\r
797!if $(VARIABLE_SUPPORT) == "EMU"\r
798 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r
799!elseif $(VARIABLE_SUPPORT) == "SPI"\r
800 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {\r
801 <LibraryClasses>\r
802 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf\r
803 NULL|MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiLib.inf\r
804 NULL|MdeModulePkg/Library/VarCheckPcdLib/VarCheckPcdLib.inf\r
805 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf\r
806 }\r
807\r
808 UefiPayloadPkg/FvbRuntimeDxe/FvbSmm.inf\r
809 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf\r
810 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf\r
811!endif\r
812\r
f6f3cc7e
PH
813 #\r
814 # Misc\r
815 #\r
a47241f1 816!if $(CRYPTO_PROTOCOL_SUPPORT) == TRUE\r
f6f3cc7e
PH
817 CryptoPkg/Driver/CryptoDxe.inf {\r
818 <LibraryClasses>\r
819 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
820 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf\r
821 }\r
a47241f1 822!endif\r
f6f3cc7e 823\r
04af8bf2
DG
824 #------------------------------\r
825 # Build the shell\r
826 #------------------------------\r
827\r
828!if $(SHELL_TYPE) == BUILD_SHELL\r
829\r
830 #\r
831 # Shell Lib\r
832 #\r
833[LibraryClasses]\r
834 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf\r
835 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
836 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf\r
837 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf\r
005a5f2d 838 !include NetworkPkg/NetworkLibs.dsc.inc\r
04af8bf2
DG
839\r
840[Components.X64]\r
841 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {\r
842 <PcdsFixedAtBuild>\r
843 ## This flag is used to control initialization of the shell library\r
844 # This should be FALSE for compiling the dynamic command.\r
845 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
846 }\r
e21b2039 847!if $(PERFORMANCE_MEASUREMENT_ENABLE) == TRUE\r
04af8bf2
DG
848 ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf {\r
849 <PcdsFixedAtBuild>\r
850 ## This flag is used to control initialization of the shell library\r
851 # This should be FALSE for compiling the dynamic command.\r
852 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
853 }\r
e21b2039 854!endif\r
04af8bf2
DG
855 ShellPkg/Application/Shell/Shell.inf {\r
856 <PcdsFixedAtBuild>\r
857 ## This flag is used to control initialization of the shell library\r
858 # This should be FALSE for compiling the shell application itself only.\r
859 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
860\r
861 #------------------------------\r
862 # Basic commands\r
863 #------------------------------\r
864\r
865 <LibraryClasses>\r
866 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf\r
867 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf\r
868 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf\r
869 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf\r
870 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf\r
871 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf\r
872\r
873 #------------------------------\r
874 # Networking commands\r
875 #------------------------------\r
876\r
877 <LibraryClasses>\r
878 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf\r
879\r
880 #------------------------------\r
881 # Support libraries\r
882 #------------------------------\r
883\r
884 <LibraryClasses>\r
04af8bf2
DG
885 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
886 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf\r
ef03e726 887 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf\r
04af8bf2
DG
888 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
889 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf\r
890 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf\r
891 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf\r
892 }\r
893\r
894!endif\r