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