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