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