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