]> git.proxmox.com Git - mirror_edk2.git/blob - UefiPayloadPkg/UefiPayloadPkg.dsc
UefiPayloadPkg: Add VariableFlashInfoLib
[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 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
276 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
277 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
278
279 [LibraryClasses.common.SEC]
280 HobLib|UefiPayloadPkg/Library/PayloadEntryHobLib/HobLib.inf
281 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
282 DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.inf
283 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
284
285 [LibraryClasses.common.DXE_CORE]
286 DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.inf
287 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
288 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
289 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
290 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
291 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
292 !if $(SOURCE_DEBUG_ENABLE)
293 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
294 !endif
295 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
296 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
297 PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
298 !endif
299
300 [LibraryClasses.common.DXE_DRIVER]
301 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
302 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
303 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
304 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
305 !if $(SOURCE_DEBUG_ENABLE)
306 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
307 !endif
308 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
309 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
310 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
311 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
312 !endif
313
314 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
315 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
316 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
317 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
318 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
319 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
320 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
321 !endif
322
323 [LibraryClasses.common.UEFI_DRIVER,LibraryClasses.common.UEFI_APPLICATION]
324 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
325 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
326 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
327 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
328 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
329 !endif
330
331 [LibraryClasses.common.SMM_CORE]
332 !if $(SMM_SUPPORT) == TRUE
333 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
334 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
335
336 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
337 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
338 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
339 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
340 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
341 PerformanceLib|MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.inf
342 !endif
343 !endif
344
345 [LibraryClasses.common.DXE_SMM_DRIVER]
346 !if $(SMM_SUPPORT) == TRUE
347 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
348
349 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
350 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
351 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
352 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
353 DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
354 SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
355 SmmCpuFeaturesLib|UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
356 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
357 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
358 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
359 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
360 PerformanceLib|MdeModulePkg/Library/SmmPerformanceLib/SmmPerformanceLib.inf
361 !endif
362 !endif
363 !if $(VARIABLE_SUPPORT) == "SPI"
364 SpiFlashLib|UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.inf
365 FlashDeviceLib|UefiPayloadPkg/Library/FlashDeviceLib/FlashDeviceLib.inf
366 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
367 !endif
368
369 ################################################################################
370 #
371 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
372 #
373 ################################################################################
374 [PcdsFeatureFlag]
375 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE
376 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
377 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
378 ## This PCD specified whether ACPI SDT protocol is installed.
379 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
380 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
381 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDegradeResourceForOptionRom|FALSE
382 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmEnableBspElection|FALSE
383
384 [PcdsFixedAtBuild]
385 gEfiMdePkgTokenSpaceGuid.PcdHardwareErrorRecordLevel|1
386 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x10000
387 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
388 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x10000
389 !if $(VARIABLE_SUPPORT) == "EMU"
390 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable |TRUE
391 !else
392 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable |FALSE
393 !endif
394
395 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
396 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE
397 gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
398
399 gUefiPayloadPkgTokenSpaceGuid.PcdPcdDriverFile|{ 0x57, 0x72, 0xcf, 0x80, 0xab, 0x87, 0xf9, 0x47, 0xa3, 0xfe, 0xD5, 0x0B, 0x76, 0xd8, 0x95, 0x41 }
400
401 !if $(SOURCE_DEBUG_ENABLE)
402 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
403 !endif
404 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
405 gEfiMdeModulePkgTokenSpaceGuid.PcdEdkiiFpdtStringRecordEnableOnly| TRUE
406 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
407 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask | 0x1
408 !endif
409 gEfiMdeModulePkgTokenSpaceGuid.PcdSdMmcGenericTimeoutValue|$(SD_MMC_TIMEOUT)
410
411 gUefiPayloadPkgTokenSpaceGuid.PcdDispatchModuleAbove4GMemory|$(ABOVE_4G_MEMORY)
412 gUefiPayloadPkgTokenSpaceGuid.PcdBootManagerEscape|$(BOOT_MANAGER_ESCAPE)
413
414 [PcdsPatchableInModule.X64]
415 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister|$(RTC_INDEX_REGISTER)
416 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister|$(RTC_TARGET_REGISTER)
417 !if $(NETWORK_DRIVER_ENABLE) == TRUE
418 gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE
419 !endif
420
421 [PcdsPatchableInModule.common]
422 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
423 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x7
424 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
425 !if $(SOURCE_DEBUG_ENABLE)
426 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
427 !else
428 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
429 !endif
430 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|$(MAX_SIZE_NON_POPULATE_CAPSULE)
431 #
432 # The following parameters are set by Library/PlatformHookLib
433 #
434 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE
435 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0
436 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialBaudRate|$(BAUD_RATE)
437 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterStride|1
438
439 #
440 # Enable these parameters to be set on the command line
441 #
442 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|$(SERIAL_CLOCK_RATE)
443 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialLineControl|$(SERIAL_LINE_CONTROL)
444 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|$(SERIAL_HARDWARE_FLOW_CONTROL)
445 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialDetectCable|$(SERIAL_DETECT_CABLE)
446 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialFifoControl|$(SERIAL_FIFO_CONTROL)
447
448 gEfiMdeModulePkgTokenSpaceGuid.PcdPciSerialParameters|$(PCI_SERIAL_PARAMETERS)
449
450 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|$(MAX_LOGICAL_PROCESSORS)
451 gUefiCpuPkgTokenSpaceGuid.PcdCpuNumberOfReservedVariableMtrrs|0
452 gUefiPayloadPkgTokenSpaceGuid.PcdBootloaderParameter|0
453
454 ################################################################################
455 #
456 # Pcd DynamicEx Section - list of all EDK II PCD Entries defined by this Platform
457 #
458 ################################################################################
459
460 [PcdsDynamicExDefault]
461 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|$(UART_DEFAULT_BAUD_RATE)
462 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits|$(UART_DEFAULT_DATA_BITS)
463 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultParity|$(UART_DEFAULT_PARITY)
464 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultStopBits|$(UART_DEFAULT_STOP_BITS)
465 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|$(DEFAULT_TERMINAL_TYPE)
466 gEfiMdeModulePkgTokenSpaceGuid.PcdAriSupport
467 gEfiMdeModulePkgTokenSpaceGuid.PcdMrIovSupport
468 gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSupport
469 gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSystemPageSize
470 gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds
471 gUefiCpuPkgTokenSpaceGuid.PcdCpuApLoopMode
472 gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchAddress
473 gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchRegionSize
474 !if $(TARGET) == DEBUG
475 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
476 !else
477 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
478 !endif
479 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
480 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
481 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
482 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
483 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
484 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|$(PLATFORM_BOOT_TIMEOUT)
485 !if $(VARIABLE_SUPPORT) == "SPI"
486 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize |0
487 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0
488 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize |0
489 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase |0
490 !endif
491 # Disable SMM S3 script
492 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
493
494 ## This PCD defines the video horizontal resolution.
495 # This PCD could be set to 0 then video resolution could be at highest resolution.
496 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0
497 ## This PCD defines the video vertical resolution.
498 # This PCD could be set to 0 then video resolution could be at highest resolution.
499 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0
500
501 ## The PCD is used to specify the video horizontal resolution of text setup.
502 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|0
503 ## The PCD is used to specify the video vertical resolution of text setup.
504 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|0
505
506 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|31
507 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|100
508 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0
509 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseSize|0
510 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
511 gEfiMdeModulePkgTokenSpaceGuid.PcdTestKeyUsed|FALSE
512 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
513 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
514
515 ################################################################################
516 #
517 # Components Section - list of all EDK II Modules needed by this Platform.
518 #
519 ################################################################################
520
521 !if "IA32" in "$(ARCH)"
522 [Components.IA32]
523 !if $(UNIVERSAL_PAYLOAD) == TRUE
524 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
525 !else
526 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
527 !endif
528 !else
529 [Components.X64]
530 !if $(UNIVERSAL_PAYLOAD) == TRUE
531 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
532 !else
533 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
534 !endif
535 !endif
536
537 #
538 # UEFI network modules
539 #
540 !if $(NETWORK_DRIVER_ENABLE) == TRUE
541 [Defines]
542 DEFINE PLATFORMX64_ENABLE = TRUE
543 !include NetworkPkg/Network.dsc.inc
544 !endif
545
546 [Components.X64]
547 #
548 # DXE Core
549 #
550 MdeModulePkg/Core/Dxe/DxeMain.inf {
551 <LibraryClasses>
552 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
553 }
554
555 #
556 # Components that produce the architectural protocols
557 #
558 !if $(SECURITY_STUB_ENABLE) == TRUE
559 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
560 !endif
561 UefiCpuPkg/CpuDxe/CpuDxe.inf
562 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
563 MdeModulePkg/Application/UiApp/UiApp.inf {
564 <LibraryClasses>
565 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
566 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
567 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
568 }
569 MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf {
570 <LibraryClasses>
571 NULL|UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
572 }
573 PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf
574 MdeModulePkg/Universal/Metronome/Metronome.inf
575 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
576 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
577 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
578 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
579 !if $(DISABLE_RESET_SYSTEM) == FALSE
580 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
581 !endif
582 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
583 !if $(EMU_VARIABLE_ENABLE) == TRUE
584 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
585 !endif
586 #
587 # Following are the DXE drivers
588 #
589 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
590 <LibraryClasses>
591 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
592 }
593
594 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
595 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
596 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
597 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
598 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
599 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
600 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
601 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
602 MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf
603 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
604
605 UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf
606
607 #
608 # SMBIOS Support
609 #
610 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
611
612 #
613 # ACPI Support
614 #
615 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
616
617 #
618 # PCI Support
619 #
620 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
621 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
622 <LibraryClasses>
623 PciHostBridgeLib|UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
624 }
625
626 #
627 # SCSI/ATA/IDE/DISK Support
628 #
629 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
630 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
631 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
632 FatPkg/EnhancedFatDxe/Fat.inf
633 MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
634 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
635 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
636 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
637 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
638 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
639
640 !if $(RAM_DISK_ENABLE) == TRUE
641 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
642 !endif
643 #
644 # SD/eMMC Support
645 #
646 MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf
647 MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
648 MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf
649
650 #
651 # Usb Support
652 #
653 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
654 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
655 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
656 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
657 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
658 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
659 MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf
660
661 #
662 # ISA Support
663 #
664 !if $(SERIAL_DRIVER_ENABLE) == TRUE
665 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
666 !endif
667 !if $(SIO_BUS_ENABLE) == TRUE
668 OvmfPkg/SioBusDxe/SioBusDxe.inf
669 !endif
670 !if $(PS2_KEYBOARD_ENABLE) == TRUE
671 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
672 !endif
673 MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf
674
675 #
676 # Console Support
677 #
678 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
679 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
680 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
681 !if $(DISABLE_SERIAL_TERMINAL) == FALSE
682 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
683 !endif
684 UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf
685 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
686 MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.inf
687 !endif
688 #
689 # SMM Support
690 #
691 !if $(SMM_SUPPORT) == TRUE
692 UefiPayloadPkg/SmmAccessDxe/SmmAccessDxe.inf
693 UefiPayloadPkg/SmmControlRuntimeDxe/SmmControlRuntimeDxe.inf
694 UefiPayloadPkg/BlSupportSmm/BlSupportSmm.inf
695 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
696 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
697 UefiPayloadPkg/PchSmiDispatchSmm/PchSmiDispatchSmm.inf
698 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
699 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
700 !if $(PERFORMANCE_MEASUREMENT_ENABLE)
701 MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableSmm/FirmwarePerformanceSmm.inf
702 !endif
703 !endif
704
705 !if $(VARIABLE_SUPPORT) == "EMU"
706 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
707 !elseif $(VARIABLE_SUPPORT) == "SPI"
708 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
709 <LibraryClasses>
710 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
711 NULL|MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiLib.inf
712 NULL|MdeModulePkg/Library/VarCheckPcdLib/VarCheckPcdLib.inf
713 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
714 }
715
716 UefiPayloadPkg/FvbRuntimeDxe/FvbSmm.inf
717 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
718 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
719 !endif
720
721 #------------------------------
722 # Build the shell
723 #------------------------------
724
725 !if $(SHELL_TYPE) == BUILD_SHELL
726
727 #
728 # Shell Lib
729 #
730 [LibraryClasses]
731 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
732 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
733 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
734 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
735 !include NetworkPkg/NetworkLibs.dsc.inc
736
737 [Components.X64]
738 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
739 <PcdsFixedAtBuild>
740 ## This flag is used to control initialization of the shell library
741 # This should be FALSE for compiling the dynamic command.
742 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
743 }
744 ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf {
745 <PcdsFixedAtBuild>
746 ## This flag is used to control initialization of the shell library
747 # This should be FALSE for compiling the dynamic command.
748 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
749 }
750 ShellPkg/Application/Shell/Shell.inf {
751 <PcdsFixedAtBuild>
752 ## This flag is used to control initialization of the shell library
753 # This should be FALSE for compiling the shell application itself only.
754 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
755
756 #------------------------------
757 # Basic commands
758 #------------------------------
759
760 <LibraryClasses>
761 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
762 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
763 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
764 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
765 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
766 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
767
768 #------------------------------
769 # Networking commands
770 #------------------------------
771
772 <LibraryClasses>
773 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
774
775 #------------------------------
776 # Support libraries
777 #------------------------------
778
779 <LibraryClasses>
780 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
781 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
782 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
783 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
784 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
785 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
786 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
787 }
788
789 !endif