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