2 # Bootloader Payload Package
4 # Provides drivers and definitions to create uefi payload for bootloaders.
6 # Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.<BR>
7 # Copyright (c) Microsoft Corporation.
8 # SPDX-License-Identifier: BSD-2-Clause-Patent
12 ################################################################################
14 # Defines Section - statements that will be processed to create a Makefile.
16 ################################################################################
18 PLATFORM_NAME = UefiPayloadPkg
19 PLATFORM_GUID = F71608AB-D63D-4491-B744-A99998C8CD96
20 PLATFORM_VERSION = 0.1
21 DSC_SPECIFICATION = 0x00010005
22 SUPPORTED_ARCHITECTURES = IA32|X64
23 BUILD_TARGETS = DEBUG|RELEASE|NOOPT
24 SKUID_IDENTIFIER = DEFAULT
25 OUTPUT_DIRECTORY = Build/UefiPayloadPkgX64
26 FLASH_DEFINITION = UefiPayloadPkg/UefiPayloadPkg.fdf
27 PCD_DYNAMIC_AS_DYNAMICEX = TRUE
29 DEFINE SOURCE_DEBUG_ENABLE = FALSE
30 DEFINE PS2_KEYBOARD_ENABLE = FALSE
31 DEFINE RAM_DISK_ENABLE = FALSE
32 DEFINE SIO_BUS_ENABLE = FALSE
33 DEFINE UNIVERSAL_PAYLOAD = FALSE
34 DEFINE SECURITY_STUB_ENABLE = TRUE
35 DEFINE SMM_SUPPORT = FALSE
36 DEFINE ABOVE_4G_MEMORY = TRUE
37 DEFINE BOOT_MANAGER_ESCAPE = FALSE
39 # SBL: UEFI payload for Slim Bootloader
40 # COREBOOT: UEFI payload for coreboot
42 DEFINE BOOTLOADER = SBL
47 DEFINE MAX_LOGICAL_PROCESSORS = 256
52 DEFINE PCIE_BASE_SUPPORT = TRUE
57 DEFINE BAUD_RATE = 115200
58 DEFINE SERIAL_CLOCK_RATE = 1843200
59 DEFINE SERIAL_LINE_CONTROL = 3 # 8-bits, no parity
60 DEFINE SERIAL_HARDWARE_FLOW_CONTROL = FALSE
61 DEFINE SERIAL_DETECT_CABLE = FALSE
62 DEFINE SERIAL_FIFO_CONTROL = 7 # Enable FIFO
63 DEFINE SERIAL_EXTENDED_TX_FIFO_SIZE = 16
64 DEFINE UART_DEFAULT_BAUD_RATE = $(BAUD_RATE)
65 DEFINE UART_DEFAULT_DATA_BITS = 8
66 DEFINE UART_DEFAULT_PARITY = 1
67 DEFINE UART_DEFAULT_STOP_BITS = 1
68 DEFINE DEFAULT_TERMINAL_TYPE = 0
70 # Enabling the serial terminal will slow down the boot menu redering!
71 DEFINE DISABLE_SERIAL_TERMINAL = FALSE
75 # UINT16 VendorId; ///< Vendor ID to match the PCI device. The value 0xFFFF terminates the list of entries.
76 # UINT16 DeviceId; ///< Device ID to match the PCI device
77 # UINT32 ClockRate; ///< UART clock rate. Set to 0 for default clock rate of 1843200 Hz
78 # UINT64 Offset; ///< The byte offset into to the BAR
79 # UINT8 BarIndex; ///< Which BAR to get the UART base address
80 # UINT8 RegisterStride; ///< UART register stride in bytes. Set to 0 for default register stride of 1 byte.
81 # UINT16 ReceiveFifoDepth; ///< UART receive FIFO depth in bytes. Set to 0 for a default FIFO depth of 16 bytes.
82 # UINT16 TransmitFifoDepth; ///< UART transmit FIFO depth in bytes. Set to 0 for a default FIFO depth of 16 bytes.
84 # } PCI_SERIAL_PARAMETER;
86 # Vendor FFFF Device 0000 Prog Interface 1, BAR #0, Offset 0, Stride = 1, Clock 1843200 (0x1c2000)
88 # [Vendor] [Device] [----ClockRate---] [------------Offset-----------] [Bar] [Stride] [RxFifo] [TxFifo] [Rsvd] [Vendor]
89 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}
92 # Shell options: [BUILD_SHELL, MIN_BIN, NONE, UEFI_BIN]
94 DEFINE SHELL_TYPE = BUILD_SHELL
97 # EMU: UEFI payload with EMU variable
98 # SPI: UEFI payload with SPI NV variable support
99 # NONE: UEFI payload with no variable modules
101 DEFINE VARIABLE_SUPPORT = EMU
103 DEFINE DISABLE_RESET_SYSTEM = FALSE
104 DEFINE NETWORK_DRIVER_ENABLE = FALSE
106 # Dfine the maximum size of the capsule image without a reset flag that the platform can support.
107 DEFINE MAX_SIZE_NON_POPULATE_CAPSULE = 0xa00000
109 # Define RTC related register.
110 DEFINE RTC_INDEX_REGISTER = 0x70
111 DEFINE RTC_TARGET_REGISTER = 0x71
113 DEFINE SERIAL_DRIVER_ENABLE = TRUE
114 DEFINE PERFORMANCE_MEASUREMENT_ENABLE = FALSE
116 # For recent X86 CPU, 0x15 CPUID instruction will return Time Stamp Counter Frequence.
117 # This is how BaseCpuTimerLib works, and a recommended way to get Frequence, so set the default value as TRUE.
118 # Note: for emulation platform such as QEMU, this may not work and should set it as FALSE
119 DEFINE CPU_TIMER_LIB_ENABLE = TRUE
122 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
123 GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
124 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
125 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
126 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
128 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
129 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
130 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
131 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
132 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
133 MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096
135 ################################################################################
137 # SKU Identification section - list of all SKU IDs supported by this Platform.
139 ################################################################################
143 ################################################################################
145 # Library Class section - list of all Library Classes needed by this Platform.
147 ################################################################################
149 !include MdePkg/MdeLibs.dsc.inc
155 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
156 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
157 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
162 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
163 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
164 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
165 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
166 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
167 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
168 !if $(PCIE_BASE_SUPPORT) == FALSE
169 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
170 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
172 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
173 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
175 PciSegmentLib|MdePkg/Library/PciSegmentLibSegmentInfo/BasePciSegmentLibSegmentInfo.inf
176 PciSegmentInfoLib|UefiPayloadPkg/Library/PciSegmentInfoLibAcpiBoardInfo/PciSegmentInfoLibAcpiBoardInfo.inf
177 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
178 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
179 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
180 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
181 DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLib/DxeHobListLib.inf
182 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
183 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
184 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
185 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
186 RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
187 HobLib|UefiPayloadPkg/Library/DxeHobLib/DxeHobLib.inf
192 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
193 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
194 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
195 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
196 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
197 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
198 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
199 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
200 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
201 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
202 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
203 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
208 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
209 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
210 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
211 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
212 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
213 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
214 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
215 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
220 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
221 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
222 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
227 !if $(CPU_TIMER_LIB_ENABLE) == TRUE && $(UNIVERSAL_PAYLOAD) == TRUE
228 TimerLib|UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf
230 TimerLib|UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
232 ResetSystemLib|UefiPayloadPkg/Library/ResetSystemLib/ResetSystemLib.inf
233 SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
234 PlatformHookLib|UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf
235 PlatformBootManagerLib|UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
236 IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
241 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
242 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
243 !if $(SOURCE_DEBUG_ENABLE) == TRUE
244 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
245 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
247 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
248 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
250 PlatformSupportLib|UefiPayloadPkg/Library/PlatformSupportLibNull/PlatformSupportLibNull.inf
251 !if $(UNIVERSAL_PAYLOAD) == FALSE
252 !if $(BOOTLOADER) == "COREBOOT"
253 BlParseLib|UefiPayloadPkg/Library/CbParseLib/CbParseLib.inf
255 BlParseLib|UefiPayloadPkg/Library/SblParseLib/SblParseLib.inf
259 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
260 LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
261 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
262 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
263 !if $(VARIABLE_SUPPORT) == "EMU"
264 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
265 !elseif $(VARIABLE_SUPPORT) == "SPI"
266 PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf
267 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
268 S3BootScriptLib|MdePkg/Library/BaseS3BootScriptLibNull/BaseS3BootScriptLibNull.inf
269 MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
271 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
272 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
273 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
274 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
276 [LibraryClasses.common.SEC]
277 HobLib|UefiPayloadPkg/Library/PayloadEntryHobLib/HobLib.inf
278 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
279 DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.inf
281 [LibraryClasses.common.DXE_CORE]
282 DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.inf
283 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
284 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
285 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
286 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
287 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
288 !if $(SOURCE_DEBUG_ENABLE)
289 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
291 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
292 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
293 PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
296 [LibraryClasses.common.DXE_DRIVER]
297 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
298 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
299 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
300 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
301 !if $(SOURCE_DEBUG_ENABLE)
302 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
304 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
305 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
306 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
307 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
310 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
311 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
312 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
313 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
314 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
315 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
316 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
319 [LibraryClasses.common.UEFI_DRIVER,LibraryClasses.common.UEFI_APPLICATION]
320 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
321 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
322 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
323 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
324 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
327 [LibraryClasses.common.SMM_CORE]
328 !if $(SMM_SUPPORT) == TRUE
329 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
330 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
332 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
333 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
334 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
335 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
336 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
337 PerformanceLib|MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.inf
341 [LibraryClasses.common.DXE_SMM_DRIVER]
342 !if $(SMM_SUPPORT) == TRUE
343 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
345 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
346 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
347 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
348 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
349 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
350 SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
351 SmmCpuFeaturesLib|UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
352 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
353 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
354 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
355 PerformanceLib|MdeModulePkg/Library/SmmPerformanceLib/SmmPerformanceLib.inf
358 !if $(VARIABLE_SUPPORT) == "SPI"
359 SpiFlashLib|UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.inf
360 FlashDeviceLib|UefiPayloadPkg/Library/FlashDeviceLib/FlashDeviceLib.inf
361 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
364 ################################################################################
366 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
368 ################################################################################
370 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE
371 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
372 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
373 ## This PCD specified whether ACPI SDT protocol is installed.
374 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
375 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
376 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDegradeResourceForOptionRom|FALSE
377 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmEnableBspElection|FALSE
380 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x10000
381 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
382 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x10000
383 !if $(VARIABLE_SUPPORT) == "EMU"
384 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable |TRUE
386 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable |FALSE
389 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
390 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE
391 gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
393 gUefiPayloadPkgTokenSpaceGuid.PcdPcdDriverFile|{ 0x57, 0x72, 0xcf, 0x80, 0xab, 0x87, 0xf9, 0x47, 0xa3, 0xfe, 0xD5, 0x0B, 0x76, 0xd8, 0x95, 0x41 }
395 !if $(SOURCE_DEBUG_ENABLE)
396 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
398 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
399 gEfiMdeModulePkgTokenSpaceGuid.PcdEdkiiFpdtStringRecordEnableOnly| TRUE
400 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
401 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask | 0x1
404 gUefiPayloadPkgTokenSpaceGuid.PcdDispatchModuleAbove4GMemory|$(ABOVE_4G_MEMORY)
405 gUefiPayloadPkgTokenSpaceGuid.PcdBootManagerEscape|$(BOOT_MANAGER_ESCAPE)
407 [PcdsPatchableInModule.X64]
408 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister|$(RTC_INDEX_REGISTER)
409 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister|$(RTC_TARGET_REGISTER)
410 gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE
412 [PcdsPatchableInModule.common]
413 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
414 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x7
415 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
416 !if $(SOURCE_DEBUG_ENABLE)
417 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
419 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
421 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|$(MAX_SIZE_NON_POPULATE_CAPSULE)
423 # The following parameters are set by Library/PlatformHookLib
425 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE
426 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0
427 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialBaudRate|$(BAUD_RATE)
428 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterStride|1
431 # Enable these parameters to be set on the command line
433 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|$(SERIAL_CLOCK_RATE)
434 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialLineControl|$(SERIAL_LINE_CONTROL)
435 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|$(SERIAL_HARDWARE_FLOW_CONTROL)
436 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialDetectCable|$(SERIAL_DETECT_CABLE)
437 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialFifoControl|$(SERIAL_FIFO_CONTROL)
438 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialExtendedTxFifoSize|$(SERIAL_EXTENDED_TX_FIFO_SIZE)
440 gEfiMdeModulePkgTokenSpaceGuid.PcdPciSerialParameters|$(PCI_SERIAL_PARAMETERS)
442 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|$(MAX_LOGICAL_PROCESSORS)
443 gUefiCpuPkgTokenSpaceGuid.PcdCpuNumberOfReservedVariableMtrrs|0
444 gUefiPayloadPkgTokenSpaceGuid.PcdBootloaderParameter|0
446 ################################################################################
448 # Pcd DynamicEx Section - list of all EDK II PCD Entries defined by this Platform
450 ################################################################################
452 [PcdsDynamicExDefault]
453 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|$(UART_DEFAULT_BAUD_RATE)
454 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits|$(UART_DEFAULT_DATA_BITS)
455 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultParity|$(UART_DEFAULT_PARITY)
456 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultStopBits|$(UART_DEFAULT_STOP_BITS)
457 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|$(DEFAULT_TERMINAL_TYPE)
458 gEfiMdeModulePkgTokenSpaceGuid.PcdAriSupport
459 gEfiMdeModulePkgTokenSpaceGuid.PcdMrIovSupport
460 gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSupport
461 gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSystemPageSize
462 gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds
463 gUefiCpuPkgTokenSpaceGuid.PcdCpuApLoopMode
464 gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchAddress
465 gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchRegionSize
466 !if $(TARGET) == DEBUG
467 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
469 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
471 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
472 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
473 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
474 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
475 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
476 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
477 !if $(VARIABLE_SUPPORT) == "SPI"
478 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize |0
479 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0
480 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize |0
481 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase |0
483 # Disable SMM S3 script
484 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
486 ## This PCD defines the video horizontal resolution.
487 # This PCD could be set to 0 then video resolution could be at highest resolution.
488 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0
489 ## This PCD defines the video vertical resolution.
490 # This PCD could be set to 0 then video resolution could be at highest resolution.
491 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0
493 ## The PCD is used to specify the video horizontal resolution of text setup.
494 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|0
495 ## The PCD is used to specify the video vertical resolution of text setup.
496 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|0
498 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|31
499 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|100
500 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0
501 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseSize|0
502 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
503 gEfiMdeModulePkgTokenSpaceGuid.PcdTestKeyUsed|FALSE
504 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
505 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
507 ################################################################################
509 # Components Section - list of all EDK II Modules needed by this Platform.
511 ################################################################################
513 !if "IA32" in "$(ARCH)"
515 !if $(UNIVERSAL_PAYLOAD) == TRUE
516 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
518 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
522 !if $(UNIVERSAL_PAYLOAD) == TRUE
523 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
525 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
530 # UEFI network modules
532 !if $(NETWORK_DRIVER_ENABLE) == TRUE
533 !include NetworkPkg/Network.dsc.inc
540 MdeModulePkg/Core/Dxe/DxeMain.inf {
542 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
546 # Components that produce the architectural protocols
548 !if $(SECURITY_STUB_ENABLE) == TRUE
549 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
551 UefiCpuPkg/CpuDxe/CpuDxe.inf
552 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
553 MdeModulePkg/Application/UiApp/UiApp.inf {
555 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
556 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
557 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
559 MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf {
561 NULL|UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
563 PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf
564 MdeModulePkg/Universal/Metronome/Metronome.inf
565 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
566 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
567 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
568 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
569 !if $(DISABLE_RESET_SYSTEM) == FALSE
570 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
572 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
573 !if $(EMU_VARIABLE_ENABLE) == TRUE
574 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
577 # Following are the DXE drivers
579 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
581 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
584 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
585 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
586 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
587 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
588 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
589 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
590 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
591 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
592 MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf
593 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
595 UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf
600 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
605 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
610 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
611 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
613 PciHostBridgeLib|UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
617 # SCSI/ATA/IDE/DISK Support
619 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
620 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
621 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
622 FatPkg/EnhancedFatDxe/Fat.inf
623 MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
624 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
625 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
626 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
627 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
628 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
630 !if $(RAM_DISK_ENABLE) == TRUE
631 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
636 MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf
637 MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
638 MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf
643 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
644 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
645 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
646 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
647 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
648 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
649 MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf
654 !if $(SERIAL_DRIVER_ENABLE) == TRUE
655 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
657 !if $(SIO_BUS_ENABLE) == TRUE
658 OvmfPkg/SioBusDxe/SioBusDxe.inf
660 !if $(PS2_KEYBOARD_ENABLE) == TRUE
661 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
663 MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf
668 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
669 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
670 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
671 !if $(DISABLE_SERIAL_TERMINAL) == FALSE
672 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
674 UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf
675 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
676 MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.inf
681 !if $(SMM_SUPPORT) == TRUE
682 UefiPayloadPkg/SmmAccessDxe/SmmAccessDxe.inf
683 UefiPayloadPkg/SmmControlRuntimeDxe/SmmControlRuntimeDxe.inf
684 UefiPayloadPkg/BlSupportSmm/BlSupportSmm.inf
685 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
686 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
687 UefiPayloadPkg/PchSmiDispatchSmm/PchSmiDispatchSmm.inf
688 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
689 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
690 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
691 MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableSmm/FirmwarePerformanceSmm.inf
695 !if $(VARIABLE_SUPPORT) == "EMU"
696 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
697 !elseif $(VARIABLE_SUPPORT) == "SPI"
698 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
700 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
701 NULL|MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiLib.inf
702 NULL|MdeModulePkg/Library/VarCheckPcdLib/VarCheckPcdLib.inf
703 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
706 UefiPayloadPkg/FvbRuntimeDxe/FvbSmm.inf
707 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
708 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
711 #------------------------------
713 #------------------------------
715 !if $(SHELL_TYPE) == BUILD_SHELL
721 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
722 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
723 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
724 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
725 !include NetworkPkg/NetworkLibs.dsc.inc
728 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
730 ## This flag is used to control initialization of the shell library
731 # This should be FALSE for compiling the dynamic command.
732 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
734 ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf {
736 ## This flag is used to control initialization of the shell library
737 # This should be FALSE for compiling the dynamic command.
738 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
740 ShellPkg/Application/Shell/Shell.inf {
742 ## This flag is used to control initialization of the shell library
743 # This should be FALSE for compiling the shell application itself only.
744 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
746 #------------------------------
748 #------------------------------
751 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
752 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
753 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
754 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
755 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
756 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
758 #------------------------------
759 # Networking commands
760 #------------------------------
763 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
765 #------------------------------
767 #------------------------------
770 DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
771 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
772 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
773 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
774 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
775 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
776 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
777 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf