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