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