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 UNIVERSAL_PAYLOAD = FALSE
34 # SBL: UEFI payload for Slim Bootloader
35 # COREBOOT: UEFI payload for coreboot
37 DEFINE BOOTLOADER = SBL
42 DEFINE MAX_LOGICAL_PROCESSORS = 64
47 DEFINE PCIE_BASE_SUPPORT = TRUE
52 DEFINE BAUD_RATE = 115200
53 DEFINE SERIAL_CLOCK_RATE = 1843200
54 DEFINE SERIAL_LINE_CONTROL = 3 # 8-bits, no parity
55 DEFINE SERIAL_HARDWARE_FLOW_CONTROL = FALSE
56 DEFINE SERIAL_DETECT_CABLE = FALSE
57 DEFINE SERIAL_FIFO_CONTROL = 7 # Enable FIFO
58 DEFINE SERIAL_EXTENDED_TX_FIFO_SIZE = 16
59 DEFINE UART_DEFAULT_BAUD_RATE = $(BAUD_RATE)
60 DEFINE UART_DEFAULT_DATA_BITS = 8
61 DEFINE UART_DEFAULT_PARITY = 1
62 DEFINE UART_DEFAULT_STOP_BITS = 1
63 DEFINE DEFAULT_TERMINAL_TYPE = 0
65 # Enabling the serial terminal will slow down the boot menu redering!
66 DEFINE DISABLE_SERIAL_TERMINAL = FALSE
70 # UINT16 VendorId; ///< Vendor ID to match the PCI device. The value 0xFFFF terminates the list of entries.
71 # UINT16 DeviceId; ///< Device ID to match the PCI device
72 # UINT32 ClockRate; ///< UART clock rate. Set to 0 for default clock rate of 1843200 Hz
73 # UINT64 Offset; ///< The byte offset into to the BAR
74 # UINT8 BarIndex; ///< Which BAR to get the UART base address
75 # UINT8 RegisterStride; ///< UART register stride in bytes. Set to 0 for default register stride of 1 byte.
76 # UINT16 ReceiveFifoDepth; ///< UART receive FIFO depth in bytes. Set to 0 for a default FIFO depth of 16 bytes.
77 # UINT16 TransmitFifoDepth; ///< UART transmit FIFO depth in bytes. Set to 0 for a default FIFO depth of 16 bytes.
79 # } PCI_SERIAL_PARAMETER;
81 # Vendor FFFF Device 0000 Prog Interface 1, BAR #0, Offset 0, Stride = 1, Clock 1843200 (0x1c2000)
83 # [Vendor] [Device] [----ClockRate---] [------------Offset-----------] [Bar] [Stride] [RxFifo] [TxFifo] [Rsvd] [Vendor]
84 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}
87 # Shell options: [BUILD_SHELL, MIN_BIN, NONE, UEFI_BIN]
89 DEFINE SHELL_TYPE = BUILD_SHELL
91 DEFINE EMU_VARIABLE_ENABLE = TRUE
92 DEFINE DISABLE_RESET_SYSTEM = FALSE
93 DEFINE NETWORK_DRIVER_ENABLE = FALSE
95 # Dfine the maximum size of the capsule image without a reset flag that the platform can support.
96 DEFINE MAX_SIZE_NON_POPULATE_CAPSULE = 0xa00000
98 # Define RTC related register.
99 DEFINE RTC_INDEX_REGISTER = 0x70
100 DEFINE RTC_TARGET_REGISTER = 0x71
102 DEFINE SERIAL_DRIVER_ENABLE = TRUE
105 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
106 GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
107 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
108 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
109 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
111 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
112 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
113 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
114 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
115 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
116 MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096
118 ################################################################################
120 # SKU Identification section - list of all SKU IDs supported by this Platform.
122 ################################################################################
126 ################################################################################
128 # Library Class section - list of all Library Classes needed by this Platform.
130 ################################################################################
132 !include MdePkg/MdeLibs.dsc.inc
138 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
139 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
140 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
145 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
146 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
147 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
148 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
149 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
150 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
151 !if $(PCIE_BASE_SUPPORT) == FALSE
152 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
153 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
155 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
156 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
158 PciSegmentLib|MdePkg/Library/PciSegmentLibSegmentInfo/BasePciSegmentLibSegmentInfo.inf
159 PciSegmentInfoLib|UefiPayloadPkg/Library/PciSegmentInfoLibAcpiBoardInfo/PciSegmentInfoLibAcpiBoardInfo.inf
160 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
161 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
162 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
163 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
164 DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLib/DxeHobListLib.inf
165 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
166 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
167 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
168 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
169 RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
171 !if $(UNIVERSAL_PAYLOAD) == TRUE
172 HobLib|UefiPayloadPkg/Library/DxeHobLib/DxeHobLib.inf
174 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
180 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
181 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
182 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
183 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
184 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
185 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
186 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
187 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
188 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
189 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
190 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
191 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
196 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
197 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
198 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
199 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
200 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
201 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
202 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
203 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
208 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
209 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
210 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
215 TimerLib|UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
216 ResetSystemLib|UefiPayloadPkg/Library/ResetSystemLib/ResetSystemLib.inf
217 SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
218 !if $(UNIVERSAL_PAYLOAD) == TRUE
219 PlatformHookLib|UefiPayloadPkg/Library/UniversalPayloadPlatformHookLib/PlatformHookLib.inf
221 PlatformHookLib|UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf
223 PlatformBootManagerLib|UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
224 IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
229 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
230 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
231 !if $(SOURCE_DEBUG_ENABLE) == TRUE
232 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
233 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
235 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
236 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
238 PlatformSupportLib|UefiPayloadPkg/Library/PlatformSupportLibNull/PlatformSupportLibNull.inf
239 !if $(UNIVERSAL_PAYLOAD) == FALSE
240 !if $(BOOTLOADER) == "COREBOOT"
241 BlParseLib|UefiPayloadPkg/Library/CbParseLib/CbParseLib.inf
243 BlParseLib|UefiPayloadPkg/Library/SblParseLib/SblParseLib.inf
247 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
248 LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
249 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
250 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
251 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
252 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
253 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
254 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
256 [LibraryClasses.common.SEC]
257 HobLib|UefiPayloadPkg/Library/PayloadEntryHobLib/HobLib.inf
258 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
259 DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.inf
261 [LibraryClasses.common.DXE_CORE]
262 DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.inf
263 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
264 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
265 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
266 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
267 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
268 !if $(SOURCE_DEBUG_ENABLE)
269 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
271 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
272 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
274 [LibraryClasses.common.DXE_DRIVER]
275 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
276 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
277 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
278 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
279 !if $(SOURCE_DEBUG_ENABLE)
280 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
282 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
283 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
284 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
286 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
287 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
288 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
289 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
290 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
292 [LibraryClasses.common.UEFI_DRIVER,LibraryClasses.common.UEFI_APPLICATION]
293 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
294 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
295 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
297 ################################################################################
299 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
301 ################################################################################
303 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE
304 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
305 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
306 ## This PCD specified whether ACPI SDT protocol is installed.
307 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
308 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
309 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDegradeResourceForOptionRom|FALSE
312 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x10000
313 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
314 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x10000
316 # Make VariableRuntimeDxe work at emulated non-volatile variable mode.
318 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE
320 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
321 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE
322 gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
324 gUefiPayloadPkgTokenSpaceGuid.PcdPcdDriverFile|{ 0x57, 0x72, 0xcf, 0x80, 0xab, 0x87, 0xf9, 0x47, 0xa3, 0xfe, 0xD5, 0x0B, 0x76, 0xd8, 0x95, 0x41 }
326 !if $(SOURCE_DEBUG_ENABLE)
327 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
330 [PcdsPatchableInModule.common]
331 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
332 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x7
333 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
334 !if $(SOURCE_DEBUG_ENABLE)
335 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
337 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
339 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|$(MAX_SIZE_NON_POPULATE_CAPSULE)
340 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister|$(RTC_INDEX_REGISTER)
341 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister|$(RTC_TARGET_REGISTER)
343 # The following parameters are set by Library/PlatformHookLib
345 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE
346 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0
347 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialBaudRate|$(BAUD_RATE)
348 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterStride|1
351 # Enable these parameters to be set on the command line
353 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|$(SERIAL_CLOCK_RATE)
354 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialLineControl|$(SERIAL_LINE_CONTROL)
355 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|$(SERIAL_HARDWARE_FLOW_CONTROL)
356 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialDetectCable|$(SERIAL_DETECT_CABLE)
357 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialFifoControl|$(SERIAL_FIFO_CONTROL)
358 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialExtendedTxFifoSize|$(SERIAL_EXTENDED_TX_FIFO_SIZE)
360 gEfiMdeModulePkgTokenSpaceGuid.PcdPciSerialParameters|$(PCI_SERIAL_PARAMETERS)
362 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|$(MAX_LOGICAL_PROCESSORS)
363 gUefiCpuPkgTokenSpaceGuid.PcdCpuNumberOfReservedVariableMtrrs|0
364 gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE
366 ################################################################################
368 # Pcd DynamicEx Section - list of all EDK II PCD Entries defined by this Platform
370 ################################################################################
372 [PcdsDynamicExDefault]
373 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|$(UART_DEFAULT_BAUD_RATE)
374 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits|$(UART_DEFAULT_DATA_BITS)
375 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultParity|$(UART_DEFAULT_PARITY)
376 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultStopBits|$(UART_DEFAULT_STOP_BITS)
377 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|$(DEFAULT_TERMINAL_TYPE)
378 gEfiMdeModulePkgTokenSpaceGuid.PcdAriSupport
379 gEfiMdeModulePkgTokenSpaceGuid.PcdMrIovSupport
380 gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSupport
381 gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSystemPageSize
382 gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds
383 gUefiCpuPkgTokenSpaceGuid.PcdCpuApLoopMode
384 gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchAddress
385 gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchRegionSize
386 !if $(TARGET) == DEBUG
387 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
389 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
391 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
392 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
393 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
394 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
395 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
396 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
398 ## This PCD defines the video horizontal resolution.
399 # This PCD could be set to 0 then video resolution could be at highest resolution.
400 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0
401 ## This PCD defines the video vertical resolution.
402 # This PCD could be set to 0 then video resolution could be at highest resolution.
403 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0
405 ## The PCD is used to specify the video horizontal resolution of text setup.
406 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|0
407 ## The PCD is used to specify the video vertical resolution of text setup.
408 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|0
410 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|31
411 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|100
412 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0
413 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseSize|0
414 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
415 gEfiMdeModulePkgTokenSpaceGuid.PcdTestKeyUsed|FALSE
416 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
417 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
419 ################################################################################
421 # Components Section - list of all EDK II Modules needed by this Platform.
423 ################################################################################
425 !if "IA32" in "$(ARCH)"
427 !if $(UNIVERSAL_PAYLOAD) == TRUE
428 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
430 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
434 !if $(UNIVERSAL_PAYLOAD) == TRUE
435 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
437 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
442 # UEFI network modules
444 !if $(NETWORK_DRIVER_ENABLE) == TRUE
445 !include NetworkPkg/Network.dsc.inc
452 MdeModulePkg/Core/Dxe/DxeMain.inf {
454 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
458 # Components that produce the architectural protocols
460 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
461 UefiCpuPkg/CpuDxe/CpuDxe.inf
462 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
463 MdeModulePkg/Application/UiApp/UiApp.inf {
465 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
466 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
467 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
469 MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf
471 PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf
472 MdeModulePkg/Universal/Metronome/Metronome.inf
473 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
474 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
475 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
476 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
477 !if $(DISABLE_RESET_SYSTEM) == FALSE
478 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
480 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
481 !if $(EMU_VARIABLE_ENABLE) == TRUE
482 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
485 # Following are the DXE drivers
487 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
489 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
492 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
493 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
494 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
495 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
496 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
497 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
498 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
499 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
500 MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf
501 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
503 UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf
508 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
513 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
518 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
519 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
521 PciHostBridgeLib|UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
525 # SCSI/ATA/IDE/DISK Support
527 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
528 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
529 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
530 FatPkg/EnhancedFatDxe/Fat.inf
531 MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
532 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
533 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
534 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
535 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
536 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
537 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
542 MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf
543 MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
544 MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf
549 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
550 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
551 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
552 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
553 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
554 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
555 MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf
560 !if $(SERIAL_DRIVER_ENABLE) == TRUE
561 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
563 !if $(PS2_KEYBOARD_ENABLE) == TRUE
564 OvmfPkg/SioBusDxe/SioBusDxe.inf
565 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
567 MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf
572 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
573 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
574 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
575 !if $(DISABLE_SERIAL_TERMINAL) == FALSE
576 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
578 UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf
580 #------------------------------
582 #------------------------------
584 !if $(SHELL_TYPE) == BUILD_SHELL
590 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
591 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
592 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
593 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
594 !include NetworkPkg/NetworkLibs.dsc.inc
597 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
599 ## This flag is used to control initialization of the shell library
600 # This should be FALSE for compiling the dynamic command.
601 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
603 ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf {
605 ## This flag is used to control initialization of the shell library
606 # This should be FALSE for compiling the dynamic command.
607 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
609 ShellPkg/Application/Shell/Shell.inf {
611 ## This flag is used to control initialization of the shell library
612 # This should be FALSE for compiling the shell application itself only.
613 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
615 #------------------------------
617 #------------------------------
620 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
621 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
622 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
623 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
624 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
625 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
627 #------------------------------
628 # Networking commands
629 #------------------------------
632 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
634 #------------------------------
636 #------------------------------
639 DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
640 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
641 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
642 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
643 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
644 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
645 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
646 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf