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