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