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
37 # SBL: UEFI payload for Slim Bootloader
38 # COREBOOT: UEFI payload for coreboot
40 DEFINE BOOTLOADER = SBL
45 DEFINE MAX_LOGICAL_PROCESSORS = 256
50 DEFINE PCIE_BASE_SUPPORT = TRUE
55 DEFINE BAUD_RATE = 115200
56 DEFINE SERIAL_CLOCK_RATE = 1843200
57 DEFINE SERIAL_LINE_CONTROL = 3 # 8-bits, no parity
58 DEFINE SERIAL_HARDWARE_FLOW_CONTROL = FALSE
59 DEFINE SERIAL_DETECT_CABLE = FALSE
60 DEFINE SERIAL_FIFO_CONTROL = 7 # Enable FIFO
61 DEFINE SERIAL_EXTENDED_TX_FIFO_SIZE = 16
62 DEFINE UART_DEFAULT_BAUD_RATE = $(BAUD_RATE)
63 DEFINE UART_DEFAULT_DATA_BITS = 8
64 DEFINE UART_DEFAULT_PARITY = 1
65 DEFINE UART_DEFAULT_STOP_BITS = 1
66 DEFINE DEFAULT_TERMINAL_TYPE = 0
68 # Enabling the serial terminal will slow down the boot menu redering!
69 DEFINE DISABLE_SERIAL_TERMINAL = FALSE
73 # UINT16 VendorId; ///< Vendor ID to match the PCI device. The value 0xFFFF terminates the list of entries.
74 # UINT16 DeviceId; ///< Device ID to match the PCI device
75 # UINT32 ClockRate; ///< UART clock rate. Set to 0 for default clock rate of 1843200 Hz
76 # UINT64 Offset; ///< The byte offset into to the BAR
77 # UINT8 BarIndex; ///< Which BAR to get the UART base address
78 # UINT8 RegisterStride; ///< UART register stride in bytes. Set to 0 for default register stride of 1 byte.
79 # UINT16 ReceiveFifoDepth; ///< UART receive FIFO depth in bytes. Set to 0 for a default FIFO depth of 16 bytes.
80 # UINT16 TransmitFifoDepth; ///< UART transmit FIFO depth in bytes. Set to 0 for a default FIFO depth of 16 bytes.
82 # } PCI_SERIAL_PARAMETER;
84 # Vendor FFFF Device 0000 Prog Interface 1, BAR #0, Offset 0, Stride = 1, Clock 1843200 (0x1c2000)
86 # [Vendor] [Device] [----ClockRate---] [------------Offset-----------] [Bar] [Stride] [RxFifo] [TxFifo] [Rsvd] [Vendor]
87 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}
90 # Shell options: [BUILD_SHELL, MIN_BIN, NONE, UEFI_BIN]
92 DEFINE SHELL_TYPE = BUILD_SHELL
95 # EMU: UEFI payload with EMU variable
96 # SPI: UEFI payload with SPI NV variable support
97 # NONE: UEFI payload with no variable modules
99 DEFINE VARIABLE_SUPPORT = EMU
101 DEFINE DISABLE_RESET_SYSTEM = FALSE
102 DEFINE NETWORK_DRIVER_ENABLE = FALSE
104 # Dfine the maximum size of the capsule image without a reset flag that the platform can support.
105 DEFINE MAX_SIZE_NON_POPULATE_CAPSULE = 0xa00000
107 # Define RTC related register.
108 DEFINE RTC_INDEX_REGISTER = 0x70
109 DEFINE RTC_TARGET_REGISTER = 0x71
111 DEFINE SERIAL_DRIVER_ENABLE = TRUE
112 DEFINE PERFORMANCE_MEASUREMENT_ENABLE = FALSE
114 # For recent X86 CPU, 0x15 CPUID instruction will return Time Stamp Counter Frequence.
115 # This is how BaseCpuTimerLib works, and a recommended way to get Frequence, so set the default value as TRUE.
116 # Note: for emulation platform such as QEMU, this may not work and should set it as FALSE
117 DEFINE CPU_TIMER_LIB_ENABLE = TRUE
120 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
121 GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
122 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
123 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
124 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
126 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
127 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
128 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
129 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
130 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
131 MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096
133 ################################################################################
135 # SKU Identification section - list of all SKU IDs supported by this Platform.
137 ################################################################################
141 ################################################################################
143 # Library Class section - list of all Library Classes needed by this Platform.
145 ################################################################################
147 !include MdePkg/MdeLibs.dsc.inc
153 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
154 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
155 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
160 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
161 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
162 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
163 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
164 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
165 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
166 !if $(PCIE_BASE_SUPPORT) == FALSE
167 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
168 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
170 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
171 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
173 PciSegmentLib|MdePkg/Library/PciSegmentLibSegmentInfo/BasePciSegmentLibSegmentInfo.inf
174 PciSegmentInfoLib|UefiPayloadPkg/Library/PciSegmentInfoLibAcpiBoardInfo/PciSegmentInfoLibAcpiBoardInfo.inf
175 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
176 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
177 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
178 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
179 DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLib/DxeHobListLib.inf
180 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
181 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
182 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
183 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
184 RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
185 HobLib|UefiPayloadPkg/Library/DxeHobLib/DxeHobLib.inf
190 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
191 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
192 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
193 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
194 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
195 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
196 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
197 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
198 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
199 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
200 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
201 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
206 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
207 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
208 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
209 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
210 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
211 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
212 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
213 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
218 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
219 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
220 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
225 !if $(CPU_TIMER_LIB_ENABLE) == TRUE && $(UNIVERSAL_PAYLOAD) == TRUE
226 TimerLib|UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf
228 TimerLib|UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
230 ResetSystemLib|UefiPayloadPkg/Library/ResetSystemLib/ResetSystemLib.inf
231 SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
232 PlatformHookLib|UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf
233 PlatformBootManagerLib|UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
234 IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
239 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
240 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
241 !if $(SOURCE_DEBUG_ENABLE) == TRUE
242 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
243 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
245 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
246 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
248 PlatformSupportLib|UefiPayloadPkg/Library/PlatformSupportLibNull/PlatformSupportLibNull.inf
249 !if $(UNIVERSAL_PAYLOAD) == FALSE
250 !if $(BOOTLOADER) == "COREBOOT"
251 BlParseLib|UefiPayloadPkg/Library/CbParseLib/CbParseLib.inf
253 BlParseLib|UefiPayloadPkg/Library/SblParseLib/SblParseLib.inf
257 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
258 LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
259 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
260 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
261 !if $(VARIABLE_SUPPORT) == "EMU"
262 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
263 !elseif $(VARIABLE_SUPPORT) == "SPI"
264 PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf
265 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
266 S3BootScriptLib|MdePkg/Library/BaseS3BootScriptLibNull/BaseS3BootScriptLibNull.inf
267 MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
269 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
270 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
271 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
272 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
274 [LibraryClasses.common.SEC]
275 HobLib|UefiPayloadPkg/Library/PayloadEntryHobLib/HobLib.inf
276 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
277 DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.inf
279 [LibraryClasses.common.DXE_CORE]
280 DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.inf
281 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
282 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
283 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
284 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
285 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
286 !if $(SOURCE_DEBUG_ENABLE)
287 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
289 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
290 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
291 PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
294 [LibraryClasses.common.DXE_DRIVER]
295 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
296 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
297 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
298 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
299 !if $(SOURCE_DEBUG_ENABLE)
300 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
302 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
303 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
304 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
305 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
308 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
309 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
310 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
311 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
312 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
313 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
314 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
317 [LibraryClasses.common.UEFI_DRIVER,LibraryClasses.common.UEFI_APPLICATION]
318 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
319 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
320 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
321 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
322 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
325 [LibraryClasses.common.SMM_CORE]
326 !if $(SMM_SUPPORT) == TRUE
327 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
328 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
330 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
331 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
332 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
333 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
334 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
335 PerformanceLib|MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.inf
339 [LibraryClasses.common.DXE_SMM_DRIVER]
340 !if $(SMM_SUPPORT) == TRUE
341 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
343 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
344 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
345 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
346 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
347 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
348 SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
349 SmmCpuFeaturesLib|UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
350 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
351 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
352 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
353 PerformanceLib|MdeModulePkg/Library/SmmPerformanceLib/SmmPerformanceLib.inf
356 !if $(VARIABLE_SUPPORT) == "SPI"
357 SpiFlashLib|UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.inf
358 FlashDeviceLib|UefiPayloadPkg/Library/FlashDeviceLib/FlashDeviceLib.inf
359 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
362 ################################################################################
364 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
366 ################################################################################
368 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE
369 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
370 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
371 ## This PCD specified whether ACPI SDT protocol is installed.
372 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
373 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
374 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDegradeResourceForOptionRom|FALSE
375 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmEnableBspElection|FALSE
378 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x10000
379 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
380 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x10000
381 !if $(VARIABLE_SUPPORT) == "EMU"
382 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable |TRUE
384 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable |FALSE
387 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
388 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE
389 gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
391 gUefiPayloadPkgTokenSpaceGuid.PcdPcdDriverFile|{ 0x57, 0x72, 0xcf, 0x80, 0xab, 0x87, 0xf9, 0x47, 0xa3, 0xfe, 0xD5, 0x0B, 0x76, 0xd8, 0x95, 0x41 }
393 !if $(SOURCE_DEBUG_ENABLE)
394 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
396 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
397 gEfiMdeModulePkgTokenSpaceGuid.PcdEdkiiFpdtStringRecordEnableOnly| TRUE
398 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
399 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask | 0x1
402 [PcdsPatchableInModule.X64]
403 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister|$(RTC_INDEX_REGISTER)
404 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister|$(RTC_TARGET_REGISTER)
405 gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE
407 [PcdsPatchableInModule.common]
408 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
409 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x7
410 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
411 !if $(SOURCE_DEBUG_ENABLE)
412 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
414 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
416 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|$(MAX_SIZE_NON_POPULATE_CAPSULE)
418 # The following parameters are set by Library/PlatformHookLib
420 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE
421 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0
422 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialBaudRate|$(BAUD_RATE)
423 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterStride|1
426 # Enable these parameters to be set on the command line
428 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|$(SERIAL_CLOCK_RATE)
429 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialLineControl|$(SERIAL_LINE_CONTROL)
430 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|$(SERIAL_HARDWARE_FLOW_CONTROL)
431 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialDetectCable|$(SERIAL_DETECT_CABLE)
432 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialFifoControl|$(SERIAL_FIFO_CONTROL)
433 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialExtendedTxFifoSize|$(SERIAL_EXTENDED_TX_FIFO_SIZE)
435 gEfiMdeModulePkgTokenSpaceGuid.PcdPciSerialParameters|$(PCI_SERIAL_PARAMETERS)
437 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|$(MAX_LOGICAL_PROCESSORS)
438 gUefiCpuPkgTokenSpaceGuid.PcdCpuNumberOfReservedVariableMtrrs|0
439 gUefiPayloadPkgTokenSpaceGuid.PcdBootloaderParameter|0
441 ################################################################################
443 # Pcd DynamicEx Section - list of all EDK II PCD Entries defined by this Platform
445 ################################################################################
447 [PcdsDynamicExDefault]
448 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|$(UART_DEFAULT_BAUD_RATE)
449 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits|$(UART_DEFAULT_DATA_BITS)
450 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultParity|$(UART_DEFAULT_PARITY)
451 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultStopBits|$(UART_DEFAULT_STOP_BITS)
452 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|$(DEFAULT_TERMINAL_TYPE)
453 gEfiMdeModulePkgTokenSpaceGuid.PcdAriSupport
454 gEfiMdeModulePkgTokenSpaceGuid.PcdMrIovSupport
455 gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSupport
456 gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSystemPageSize
457 gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds
458 gUefiCpuPkgTokenSpaceGuid.PcdCpuApLoopMode
459 gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchAddress
460 gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchRegionSize
461 !if $(TARGET) == DEBUG
462 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
464 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
466 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
467 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
468 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
469 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
470 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
471 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
472 !if $(VARIABLE_SUPPORT) == "SPI"
473 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize |0
474 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0
475 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize |0
476 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase |0
478 # Disable SMM S3 script
479 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
481 ## This PCD defines the video horizontal resolution.
482 # This PCD could be set to 0 then video resolution could be at highest resolution.
483 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0
484 ## This PCD defines the video vertical resolution.
485 # This PCD could be set to 0 then video resolution could be at highest resolution.
486 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0
488 ## The PCD is used to specify the video horizontal resolution of text setup.
489 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|0
490 ## The PCD is used to specify the video vertical resolution of text setup.
491 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|0
493 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|31
494 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|100
495 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0
496 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseSize|0
497 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
498 gEfiMdeModulePkgTokenSpaceGuid.PcdTestKeyUsed|FALSE
499 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
500 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
502 ################################################################################
504 # Components Section - list of all EDK II Modules needed by this Platform.
506 ################################################################################
508 !if "IA32" in "$(ARCH)"
510 !if $(UNIVERSAL_PAYLOAD) == TRUE
511 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
513 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
517 !if $(UNIVERSAL_PAYLOAD) == TRUE
518 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
520 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
525 # UEFI network modules
527 !if $(NETWORK_DRIVER_ENABLE) == TRUE
528 !include NetworkPkg/Network.dsc.inc
535 MdeModulePkg/Core/Dxe/DxeMain.inf {
537 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
541 # Components that produce the architectural protocols
543 !if $(SECURITY_STUB_ENABLE) == TRUE
544 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
546 UefiCpuPkg/CpuDxe/CpuDxe.inf
547 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
548 MdeModulePkg/Application/UiApp/UiApp.inf {
550 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
551 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
552 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
554 MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf {
556 NULL|UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
558 PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf
559 MdeModulePkg/Universal/Metronome/Metronome.inf
560 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
561 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
562 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
563 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
564 !if $(DISABLE_RESET_SYSTEM) == FALSE
565 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
567 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
568 !if $(EMU_VARIABLE_ENABLE) == TRUE
569 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
572 # Following are the DXE drivers
574 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
576 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
579 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
580 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
581 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
582 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
583 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
584 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
585 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
586 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
587 MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf
588 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
590 UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf
595 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
600 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
605 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
606 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
608 PciHostBridgeLib|UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
612 # SCSI/ATA/IDE/DISK Support
614 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
615 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
616 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
617 FatPkg/EnhancedFatDxe/Fat.inf
618 MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
619 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
620 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
621 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
622 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
623 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
625 !if $(RAM_DISK_ENABLE) == TRUE
626 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
631 MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf
632 MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
633 MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf
638 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
639 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
640 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
641 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
642 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
643 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
644 MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf
649 !if $(SERIAL_DRIVER_ENABLE) == TRUE
650 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
652 !if $(SIO_BUS_ENABLE) == TRUE
653 OvmfPkg/SioBusDxe/SioBusDxe.inf
655 !if $(PS2_KEYBOARD_ENABLE) == TRUE
656 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
658 MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf
663 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
664 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
665 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
666 !if $(DISABLE_SERIAL_TERMINAL) == FALSE
667 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
669 UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf
670 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
671 MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.inf
676 !if $(SMM_SUPPORT) == TRUE
677 UefiPayloadPkg/SmmAccessDxe/SmmAccessDxe.inf
678 UefiPayloadPkg/SmmControlRuntimeDxe/SmmControlRuntimeDxe.inf
679 UefiPayloadPkg/BlSupportSmm/BlSupportSmm.inf
680 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
681 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
682 UefiPayloadPkg/PchSmiDispatchSmm/PchSmiDispatchSmm.inf
683 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
684 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
685 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
686 MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableSmm/FirmwarePerformanceSmm.inf
690 !if $(VARIABLE_SUPPORT) == "EMU"
691 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
692 !elseif $(VARIABLE_SUPPORT) == "SPI"
693 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
695 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
696 NULL|MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiLib.inf
697 NULL|MdeModulePkg/Library/VarCheckPcdLib/VarCheckPcdLib.inf
698 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
701 UefiPayloadPkg/FvbRuntimeDxe/FvbSmm.inf
702 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
703 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
706 #------------------------------
708 #------------------------------
710 !if $(SHELL_TYPE) == BUILD_SHELL
716 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
717 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
718 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
719 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
720 !include NetworkPkg/NetworkLibs.dsc.inc
723 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
725 ## This flag is used to control initialization of the shell library
726 # This should be FALSE for compiling the dynamic command.
727 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
729 ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf {
731 ## This flag is used to control initialization of the shell library
732 # This should be FALSE for compiling the dynamic command.
733 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
735 ShellPkg/Application/Shell/Shell.inf {
737 ## This flag is used to control initialization of the shell library
738 # This should be FALSE for compiling the shell application itself only.
739 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
741 #------------------------------
743 #------------------------------
746 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
747 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
748 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
749 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
750 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
751 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
753 #------------------------------
754 # Networking commands
755 #------------------------------
758 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
760 #------------------------------
762 #------------------------------
765 DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
766 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
767 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
768 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
769 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
770 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
771 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
772 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf