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