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