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
38 DEFINE SD_MMC_TIMEOUT = 1000000
40 # SBL: UEFI payload for Slim Bootloader
41 # COREBOOT: UEFI payload for coreboot
43 DEFINE BOOTLOADER = SBL
48 DEFINE MAX_LOGICAL_PROCESSORS = 256
53 DEFINE PCIE_BASE_SUPPORT = TRUE
58 DEFINE BAUD_RATE = 115200
59 DEFINE SERIAL_CLOCK_RATE = 1843200
60 DEFINE SERIAL_LINE_CONTROL = 3 # 8-bits, no parity
61 DEFINE SERIAL_HARDWARE_FLOW_CONTROL = FALSE
62 DEFINE SERIAL_DETECT_CABLE = FALSE
63 DEFINE SERIAL_FIFO_CONTROL = 7 # Enable FIFO
64 DEFINE SERIAL_EXTENDED_TX_FIFO_SIZE = 16
65 DEFINE UART_DEFAULT_BAUD_RATE = $(BAUD_RATE)
66 DEFINE UART_DEFAULT_DATA_BITS = 8
67 DEFINE UART_DEFAULT_PARITY = 1
68 DEFINE UART_DEFAULT_STOP_BITS = 1
69 DEFINE DEFAULT_TERMINAL_TYPE = 0
71 # Enabling the serial terminal will slow down the boot menu redering!
72 DEFINE DISABLE_SERIAL_TERMINAL = FALSE
76 # UINT16 VendorId; ///< Vendor ID to match the PCI device. The value 0xFFFF terminates the list of entries.
77 # UINT16 DeviceId; ///< Device ID to match the PCI device
78 # UINT32 ClockRate; ///< UART clock rate. Set to 0 for default clock rate of 1843200 Hz
79 # UINT64 Offset; ///< The byte offset into to the BAR
80 # UINT8 BarIndex; ///< Which BAR to get the UART base address
81 # UINT8 RegisterStride; ///< UART register stride in bytes. Set to 0 for default register stride of 1 byte.
82 # UINT16 ReceiveFifoDepth; ///< UART receive FIFO depth in bytes. Set to 0 for a default FIFO depth of 16 bytes.
83 # UINT16 TransmitFifoDepth; ///< UART transmit FIFO depth in bytes. Set to 0 for a default FIFO depth of 16 bytes.
85 # } PCI_SERIAL_PARAMETER;
87 # Vendor FFFF Device 0000 Prog Interface 1, BAR #0, Offset 0, Stride = 1, Clock 1843200 (0x1c2000)
89 # [Vendor] [Device] [----ClockRate---] [------------Offset-----------] [Bar] [Stride] [RxFifo] [TxFifo] [Rsvd] [Vendor]
90 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}
93 # Shell options: [BUILD_SHELL, MIN_BIN, NONE, UEFI_BIN]
95 DEFINE SHELL_TYPE = BUILD_SHELL
98 # EMU: UEFI payload with EMU variable
99 # SPI: UEFI payload with SPI NV variable support
100 # NONE: UEFI payload with no variable modules
102 DEFINE VARIABLE_SUPPORT = EMU
104 DEFINE DISABLE_RESET_SYSTEM = FALSE
105 DEFINE NETWORK_DRIVER_ENABLE = FALSE
107 # Dfine the maximum size of the capsule image without a reset flag that the platform can support.
108 DEFINE MAX_SIZE_NON_POPULATE_CAPSULE = 0xa00000
110 # Define RTC related register.
111 DEFINE RTC_INDEX_REGISTER = 0x70
112 DEFINE RTC_TARGET_REGISTER = 0x71
114 DEFINE SERIAL_DRIVER_ENABLE = TRUE
115 DEFINE PERFORMANCE_MEASUREMENT_ENABLE = FALSE
117 # For recent X86 CPU, 0x15 CPUID instruction will return Time Stamp Counter Frequence.
118 # This is how BaseCpuTimerLib works, and a recommended way to get Frequence, so set the default value as TRUE.
119 # Note: for emulation platform such as QEMU, this may not work and should set it as FALSE
120 DEFINE CPU_TIMER_LIB_ENABLE = TRUE
123 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
124 GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
125 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
126 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
127 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
129 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
130 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
131 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
132 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
133 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
134 MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096
136 ################################################################################
138 # SKU Identification section - list of all SKU IDs supported by this Platform.
140 ################################################################################
144 ################################################################################
146 # Library Class section - list of all Library Classes needed by this Platform.
148 ################################################################################
150 !include MdePkg/MdeLibs.dsc.inc
156 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
157 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
158 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
163 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
164 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
165 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
166 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
167 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
168 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
169 !if $(PCIE_BASE_SUPPORT) == FALSE
170 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
171 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
173 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
174 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
176 PciSegmentLib|MdePkg/Library/PciSegmentLibSegmentInfo/BasePciSegmentLibSegmentInfo.inf
177 PciSegmentInfoLib|UefiPayloadPkg/Library/PciSegmentInfoLibAcpiBoardInfo/PciSegmentInfoLibAcpiBoardInfo.inf
178 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
179 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
180 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
181 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
182 DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLib/DxeHobListLib.inf
183 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
184 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
185 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
186 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
187 RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
188 HobLib|UefiPayloadPkg/Library/DxeHobLib/DxeHobLib.inf
193 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
194 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
195 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
196 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
197 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
198 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
199 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
200 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
201 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
202 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
203 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
204 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
209 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
210 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
211 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
212 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
213 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
214 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
215 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
216 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
221 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
222 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
223 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
228 !if $(CPU_TIMER_LIB_ENABLE) == TRUE && $(UNIVERSAL_PAYLOAD) == TRUE
229 TimerLib|UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf
231 TimerLib|UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
233 ResetSystemLib|UefiPayloadPkg/Library/ResetSystemLib/ResetSystemLib.inf
234 SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
235 PlatformHookLib|UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf
236 PlatformBootManagerLib|UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
237 IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
242 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
243 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
244 !if $(SOURCE_DEBUG_ENABLE) == TRUE
245 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
246 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
248 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
249 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
251 PlatformSupportLib|UefiPayloadPkg/Library/PlatformSupportLibNull/PlatformSupportLibNull.inf
252 !if $(UNIVERSAL_PAYLOAD) == FALSE
253 !if $(BOOTLOADER) == "COREBOOT"
254 BlParseLib|UefiPayloadPkg/Library/CbParseLib/CbParseLib.inf
256 BlParseLib|UefiPayloadPkg/Library/SblParseLib/SblParseLib.inf
260 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
261 LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
262 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
263 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
264 !if $(VARIABLE_SUPPORT) == "EMU"
265 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
266 !elseif $(VARIABLE_SUPPORT) == "SPI"
267 PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf
268 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
269 S3BootScriptLib|MdePkg/Library/BaseS3BootScriptLibNull/BaseS3BootScriptLibNull.inf
270 MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
272 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
273 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
274 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
275 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
277 [LibraryClasses.common.SEC]
278 HobLib|UefiPayloadPkg/Library/PayloadEntryHobLib/HobLib.inf
279 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
280 DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.inf
282 [LibraryClasses.common.DXE_CORE]
283 DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.inf
284 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
285 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
286 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
287 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
288 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
289 !if $(SOURCE_DEBUG_ENABLE)
290 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
292 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
293 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
294 PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
297 [LibraryClasses.common.DXE_DRIVER]
298 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
299 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
300 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
301 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
302 !if $(SOURCE_DEBUG_ENABLE)
303 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
305 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
306 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
307 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
308 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
311 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
312 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
313 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
314 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
315 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
316 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
317 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
320 [LibraryClasses.common.UEFI_DRIVER,LibraryClasses.common.UEFI_APPLICATION]
321 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
322 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
323 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
324 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
325 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
328 [LibraryClasses.common.SMM_CORE]
329 !if $(SMM_SUPPORT) == TRUE
330 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
331 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
333 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
334 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
335 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
336 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
337 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
338 PerformanceLib|MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.inf
342 [LibraryClasses.common.DXE_SMM_DRIVER]
343 !if $(SMM_SUPPORT) == TRUE
344 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
346 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
347 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
348 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
349 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
350 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
351 SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
352 SmmCpuFeaturesLib|UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
353 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
354 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
355 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
356 PerformanceLib|MdeModulePkg/Library/SmmPerformanceLib/SmmPerformanceLib.inf
359 !if $(VARIABLE_SUPPORT) == "SPI"
360 SpiFlashLib|UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.inf
361 FlashDeviceLib|UefiPayloadPkg/Library/FlashDeviceLib/FlashDeviceLib.inf
362 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
365 ################################################################################
367 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
369 ################################################################################
371 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE
372 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
373 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
374 ## This PCD specified whether ACPI SDT protocol is installed.
375 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
376 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
377 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDegradeResourceForOptionRom|FALSE
378 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmEnableBspElection|FALSE
381 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x10000
382 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
383 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x10000
384 !if $(VARIABLE_SUPPORT) == "EMU"
385 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable |TRUE
387 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable |FALSE
390 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
391 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE
392 gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
394 gUefiPayloadPkgTokenSpaceGuid.PcdPcdDriverFile|{ 0x57, 0x72, 0xcf, 0x80, 0xab, 0x87, 0xf9, 0x47, 0xa3, 0xfe, 0xD5, 0x0B, 0x76, 0xd8, 0x95, 0x41 }
396 !if $(SOURCE_DEBUG_ENABLE)
397 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
399 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
400 gEfiMdeModulePkgTokenSpaceGuid.PcdEdkiiFpdtStringRecordEnableOnly| TRUE
401 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
402 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask | 0x1
404 gEfiMdeModulePkgTokenSpaceGuid.PcdSdMmcGenericTimeoutValue|$(SD_MMC_TIMEOUT)
406 gUefiPayloadPkgTokenSpaceGuid.PcdDispatchModuleAbove4GMemory|$(ABOVE_4G_MEMORY)
407 gUefiPayloadPkgTokenSpaceGuid.PcdBootManagerEscape|$(BOOT_MANAGER_ESCAPE)
409 [PcdsPatchableInModule.X64]
410 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister|$(RTC_INDEX_REGISTER)
411 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister|$(RTC_TARGET_REGISTER)
412 gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE
414 [PcdsPatchableInModule.common]
415 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
416 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x7
417 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
418 !if $(SOURCE_DEBUG_ENABLE)
419 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
421 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
423 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|$(MAX_SIZE_NON_POPULATE_CAPSULE)
425 # The following parameters are set by Library/PlatformHookLib
427 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE
428 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0
429 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialBaudRate|$(BAUD_RATE)
430 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterStride|1
433 # Enable these parameters to be set on the command line
435 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|$(SERIAL_CLOCK_RATE)
436 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialLineControl|$(SERIAL_LINE_CONTROL)
437 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|$(SERIAL_HARDWARE_FLOW_CONTROL)
438 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialDetectCable|$(SERIAL_DETECT_CABLE)
439 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialFifoControl|$(SERIAL_FIFO_CONTROL)
440 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialExtendedTxFifoSize|$(SERIAL_EXTENDED_TX_FIFO_SIZE)
442 gEfiMdeModulePkgTokenSpaceGuid.PcdPciSerialParameters|$(PCI_SERIAL_PARAMETERS)
444 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|$(MAX_LOGICAL_PROCESSORS)
445 gUefiCpuPkgTokenSpaceGuid.PcdCpuNumberOfReservedVariableMtrrs|0
446 gUefiPayloadPkgTokenSpaceGuid.PcdBootloaderParameter|0
448 ################################################################################
450 # Pcd DynamicEx Section - list of all EDK II PCD Entries defined by this Platform
452 ################################################################################
454 [PcdsDynamicExDefault]
455 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|$(UART_DEFAULT_BAUD_RATE)
456 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits|$(UART_DEFAULT_DATA_BITS)
457 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultParity|$(UART_DEFAULT_PARITY)
458 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultStopBits|$(UART_DEFAULT_STOP_BITS)
459 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|$(DEFAULT_TERMINAL_TYPE)
460 gEfiMdeModulePkgTokenSpaceGuid.PcdAriSupport
461 gEfiMdeModulePkgTokenSpaceGuid.PcdMrIovSupport
462 gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSupport
463 gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSystemPageSize
464 gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds
465 gUefiCpuPkgTokenSpaceGuid.PcdCpuApLoopMode
466 gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchAddress
467 gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchRegionSize
468 !if $(TARGET) == DEBUG
469 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
471 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
473 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
474 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
475 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
476 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
477 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
478 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
479 !if $(VARIABLE_SUPPORT) == "SPI"
480 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize |0
481 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0
482 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize |0
483 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase |0
485 # Disable SMM S3 script
486 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
488 ## This PCD defines the video horizontal resolution.
489 # This PCD could be set to 0 then video resolution could be at highest resolution.
490 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0
491 ## This PCD defines the video vertical resolution.
492 # This PCD could be set to 0 then video resolution could be at highest resolution.
493 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0
495 ## The PCD is used to specify the video horizontal resolution of text setup.
496 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|0
497 ## The PCD is used to specify the video vertical resolution of text setup.
498 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|0
500 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|31
501 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|100
502 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0
503 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseSize|0
504 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
505 gEfiMdeModulePkgTokenSpaceGuid.PcdTestKeyUsed|FALSE
506 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
507 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
509 ################################################################################
511 # Components Section - list of all EDK II Modules needed by this Platform.
513 ################################################################################
515 !if "IA32" in "$(ARCH)"
517 !if $(UNIVERSAL_PAYLOAD) == TRUE
518 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
520 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
524 !if $(UNIVERSAL_PAYLOAD) == TRUE
525 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
527 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
532 # UEFI network modules
534 !if $(NETWORK_DRIVER_ENABLE) == TRUE
535 !include NetworkPkg/Network.dsc.inc
542 MdeModulePkg/Core/Dxe/DxeMain.inf {
544 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
548 # Components that produce the architectural protocols
550 !if $(SECURITY_STUB_ENABLE) == TRUE
551 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
553 UefiCpuPkg/CpuDxe/CpuDxe.inf
554 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
555 MdeModulePkg/Application/UiApp/UiApp.inf {
557 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
558 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
559 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
561 MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf {
563 NULL|UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
565 PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf
566 MdeModulePkg/Universal/Metronome/Metronome.inf
567 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
568 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
569 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
570 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
571 !if $(DISABLE_RESET_SYSTEM) == FALSE
572 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
574 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
575 !if $(EMU_VARIABLE_ENABLE) == TRUE
576 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
579 # Following are the DXE drivers
581 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
583 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
586 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
587 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
588 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
589 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
590 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
591 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
592 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
593 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
594 MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf
595 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
597 UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf
602 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
607 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
612 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
613 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
615 PciHostBridgeLib|UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
619 # SCSI/ATA/IDE/DISK Support
621 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
622 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
623 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
624 FatPkg/EnhancedFatDxe/Fat.inf
625 MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
626 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
627 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
628 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
629 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
630 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
632 !if $(RAM_DISK_ENABLE) == TRUE
633 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
638 MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf
639 MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
640 MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf
645 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
646 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
647 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
648 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
649 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
650 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
651 MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf
656 !if $(SERIAL_DRIVER_ENABLE) == TRUE
657 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
659 !if $(SIO_BUS_ENABLE) == TRUE
660 OvmfPkg/SioBusDxe/SioBusDxe.inf
662 !if $(PS2_KEYBOARD_ENABLE) == TRUE
663 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
665 MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf
670 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
671 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
672 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
673 !if $(DISABLE_SERIAL_TERMINAL) == FALSE
674 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
676 UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf
677 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
678 MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.inf
683 !if $(SMM_SUPPORT) == TRUE
684 UefiPayloadPkg/SmmAccessDxe/SmmAccessDxe.inf
685 UefiPayloadPkg/SmmControlRuntimeDxe/SmmControlRuntimeDxe.inf
686 UefiPayloadPkg/BlSupportSmm/BlSupportSmm.inf
687 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
688 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
689 UefiPayloadPkg/PchSmiDispatchSmm/PchSmiDispatchSmm.inf
690 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
691 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
692 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
693 MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableSmm/FirmwarePerformanceSmm.inf
697 !if $(VARIABLE_SUPPORT) == "EMU"
698 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
699 !elseif $(VARIABLE_SUPPORT) == "SPI"
700 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
702 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
703 NULL|MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiLib.inf
704 NULL|MdeModulePkg/Library/VarCheckPcdLib/VarCheckPcdLib.inf
705 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
708 UefiPayloadPkg/FvbRuntimeDxe/FvbSmm.inf
709 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
710 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
713 #------------------------------
715 #------------------------------
717 !if $(SHELL_TYPE) == BUILD_SHELL
723 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
724 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
725 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
726 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
727 !include NetworkPkg/NetworkLibs.dsc.inc
730 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
732 ## This flag is used to control initialization of the shell library
733 # This should be FALSE for compiling the dynamic command.
734 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
736 ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf {
738 ## This flag is used to control initialization of the shell library
739 # This should be FALSE for compiling the dynamic command.
740 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
742 ShellPkg/Application/Shell/Shell.inf {
744 ## This flag is used to control initialization of the shell library
745 # This should be FALSE for compiling the shell application itself only.
746 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
748 #------------------------------
750 #------------------------------
753 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
754 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
755 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
756 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
757 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
758 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
760 #------------------------------
761 # Networking commands
762 #------------------------------
765 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
767 #------------------------------
769 #------------------------------
772 DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
773 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
774 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
775 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
776 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
777 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
778 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
779 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf