]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Microvm/MicrovmX64.dsc
Ovmf/HardwareInfoLib: Create Pei lib to parse directly from fw-cfg
[mirror_edk2.git] / OvmfPkg / Microvm / MicrovmX64.dsc
CommitLineData
606340fb
GH
1## @file\r
2# EFI/Framework Open Virtual Machine Firmware (OVMF) platform\r
3#\r
4# Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>\r
5# (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
6# Copyright (c) Microsoft Corporation.\r
7#\r
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
4932f05a
GH
18 PLATFORM_NAME = Microvm\r
19 PLATFORM_GUID = 55a5d2cc-6ca6-47d1-8f4f-5588d7705194\r
606340fb
GH
20 PLATFORM_VERSION = 0.1\r
21 DSC_SPECIFICATION = 0x00010005\r
4932f05a 22 OUTPUT_DIRECTORY = Build/MicrovmX64\r
606340fb
GH
23 SUPPORTED_ARCHITECTURES = X64\r
24 BUILD_TARGETS = NOOPT|DEBUG|RELEASE\r
25 SKUID_IDENTIFIER = DEFAULT\r
4932f05a 26 FLASH_DEFINITION = OvmfPkg/Microvm/MicrovmX64.fdf\r
606340fb
GH
27\r
28 #\r
29 # Defines for default states. These can be changed on the command line.\r
30 # -D FLAG=VALUE\r
31 #\r
32 DEFINE SECURE_BOOT_ENABLE = FALSE\r
33 DEFINE SMM_REQUIRE = FALSE\r
34 DEFINE SOURCE_DEBUG_ENABLE = FALSE\r
606340fb
GH
35\r
36 #\r
37 # Network definition\r
38 #\r
39 DEFINE NETWORK_TLS_ENABLE = FALSE\r
40 DEFINE NETWORK_IP6_ENABLE = FALSE\r
41 DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE\r
42 DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE\r
43 DEFINE NETWORK_ISCSI_ENABLE = TRUE\r
44\r
45!include NetworkPkg/NetworkDefines.dsc.inc\r
46\r
47 #\r
48 # Device drivers\r
49 #\r
50 DEFINE PVSCSI_ENABLE = TRUE\r
51 DEFINE MPT_SCSI_ENABLE = TRUE\r
52 DEFINE LSI_SCSI_ENABLE = FALSE\r
53\r
54 #\r
55 # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to\r
56 # one of the supported values, in place of any of the convenience macros, is\r
57 # permitted.\r
58 #\r
59!ifdef $(FD_SIZE_1MB)\r
60 DEFINE FD_SIZE_IN_KB = 1024\r
61!else\r
62!ifdef $(FD_SIZE_2MB)\r
63 DEFINE FD_SIZE_IN_KB = 2048\r
64!else\r
65!ifdef $(FD_SIZE_4MB)\r
66 DEFINE FD_SIZE_IN_KB = 4096\r
67!else\r
68 DEFINE FD_SIZE_IN_KB = 4096\r
69!endif\r
70!endif\r
71!endif\r
72\r
73[BuildOptions]\r
74 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG\r
75 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG\r
76 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG\r
77!if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"\r
78 GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse\r
79!endif\r
80!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
81 MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable\r
82 GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable\r
83 INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable\r
84!endif\r
85 RELEASE_*_*_GENFW_FLAGS = --zero\r
86\r
87 #\r
88 # Disable deprecated APIs.\r
89 #\r
90 MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES\r
91 INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES\r
92 GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES\r
93\r
94!include NetworkPkg/NetworkBuildOptions.dsc.inc\r
95\r
96[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]\r
97 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000\r
98 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000\r
99 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000\r
100 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096\r
101\r
102# Force PE/COFF sections to be aligned at 4KB boundaries to support page level\r
103# protection of DXE_SMM_DRIVER/SMM_CORE modules\r
104[BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]\r
105 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000\r
106 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000\r
107 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000\r
108 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096\r
109\r
110################################################################################\r
111#\r
112# SKU Identification section - list of all SKU IDs supported by this Platform.\r
113#\r
114################################################################################\r
115[SkuIds]\r
116 0|DEFAULT\r
117\r
118################################################################################\r
119#\r
120# Library Class section - list of all Library Classes needed by this Platform.\r
121#\r
122################################################################################\r
123\r
124!include MdePkg/MdeLibs.dsc.inc\r
125\r
126[LibraryClasses]\r
127 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
27de86ae 128 TimerLib|MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf\r
1d3e89f3 129 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLibMicrovm.inf\r
606340fb
GH
130 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
131 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf\r
132 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf\r
133 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf\r
134 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf\r
135 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf\r
136 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf\r
137 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf\r
138 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf\r
139 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf\r
140 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf\r
141 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf\r
142 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf\r
143 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf\r
144 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf\r
145 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf\r
146 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf\r
147 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf\r
148 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf\r
149 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf\r
150 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf\r
151 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
152 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf\r
153 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf\r
154 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf\r
155 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf\r
156 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf\r
157 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf\r
158 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf\r
2a7e1e89 159 CcProbeLib|MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf\r
606340fb
GH
160 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf\r
161 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r
162 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf\r
163 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf\r
164 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf\r
165 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf\r
166 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r
167 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf\r
168 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf\r
169 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf\r
170 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf\r
171 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf\r
172 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf\r
173 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf\r
174 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf\r
175 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf\r
176 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf\r
177 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf\r
178 QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf\r
179 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf\r
180 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf\r
181 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf\r
606340fb 182 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf\r
606340fb
GH
183 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf\r
184 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf\r
25201821 185 MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLib.inf\r
2b1a5b8c 186 PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf\r
606340fb
GH
187\r
188!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
189 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf\r
190 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf\r
191!else\r
192 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf\r
193 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf\r
194!endif\r
195\r
196 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf\r
197 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
198\r
199 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r
200!if $(NETWORK_TLS_ENABLE) == TRUE\r
201 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf\r
202!else\r
203 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf\r
204!endif\r
205 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf\r
206\r
606340fb 207 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf\r
606340fb
GH
208 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf\r
209 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf\r
210 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf\r
a7d3d4e7 211 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf\r
606340fb
GH
212\r
213\r
214 #\r
215 # Network libraries\r
216 #\r
217!include NetworkPkg/NetworkLibs.dsc.inc\r
218\r
219!if $(NETWORK_TLS_ENABLE) == TRUE\r
220 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf\r
221!endif\r
222\r
223 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf\r
224 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf\r
225 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf\r
226 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf\r
227 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf\r
228\r
606340fb
GH
229 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf\r
230 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf\r
606340fb
GH
231\r
232[LibraryClasses.common]\r
233 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
234 VmgExitLib|OvmfPkg/Library/VmgExitLib/VmgExitLib.inf\r
55f47d22
GH
235 SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf\r
236 PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf\r
64ef0dd1 237 FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf\r
2a68abf6 238 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf\r
2b80269d 239 TdxLib|MdePkg/Library/TdxLib/TdxLib.inf\r
606340fb
GH
240\r
241[LibraryClasses.common.SEC]\r
606340fb
GH
242 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf\r
243!ifdef $(DEBUG_ON_SERIAL_PORT)\r
244 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
245!else\r
246 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf\r
247!endif\r
248 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf\r
249 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf\r
250!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
251 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf\r
252!endif\r
253 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
254 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
255 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
256 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
257!if $(TOOL_CHAIN_TAG) == "XCODE5"\r
258 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf\r
259!else\r
260 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf\r
261!endif\r
262 VmgExitLib|OvmfPkg/Library/VmgExitLib/SecVmgExitLib.inf\r
263 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf\r
264\r
265[LibraryClasses.common.PEI_CORE]\r
266 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
267 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
268 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
269 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
270 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf\r
271 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf\r
272 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r
273 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
274!ifdef $(DEBUG_ON_SERIAL_PORT)\r
275 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
276!else\r
277 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
278!endif\r
279 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf\r
280\r
281[LibraryClasses.common.PEIM]\r
282 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
283 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
284 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
285 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
286 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf\r
287 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf\r
288 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r
289 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
290!ifdef $(DEBUG_ON_SERIAL_PORT)\r
291 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
292!else\r
293 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
294!endif\r
295 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf\r
296 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf\r
297 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf\r
298!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
299 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf\r
300!endif\r
301 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf\r
302 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf\r
303 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf\r
304 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r
305 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf\r
306\r
606340fb 307 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf\r
57bcfc3b 308 PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf\r
606340fb
GH
309\r
310[LibraryClasses.common.DXE_CORE]\r
311 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf\r
312 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
313 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf\r
314 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
315!ifdef $(DEBUG_ON_SERIAL_PORT)\r
316 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
317!else\r
318 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
319!endif\r
320 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf\r
321!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
322 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf\r
323!endif\r
324 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
325 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
326\r
327[LibraryClasses.common.DXE_RUNTIME_DRIVER]\r
328 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
1d3e89f3 329 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf\r
606340fb
GH
330 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
331 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
332 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
333 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf\r
334!ifdef $(DEBUG_ON_SERIAL_PORT)\r
335 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
336!else\r
337 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
338!endif\r
339 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r
340 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf\r
632574ce
GH
341# PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf\r
342# PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf\r
343# PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf\r
606340fb
GH
344 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf\r
345 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf\r
606340fb
GH
346\r
347[LibraryClasses.common.UEFI_DRIVER]\r
348 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
1d3e89f3 349 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf\r
606340fb
GH
350 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
351 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
352 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
353 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
354!ifdef $(DEBUG_ON_SERIAL_PORT)\r
355 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
356!else\r
357 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
358!endif\r
359 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
632574ce
GH
360 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf\r
361 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf\r
362 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf\r
606340fb
GH
363\r
364[LibraryClasses.common.DXE_DRIVER]\r
365 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
1d3e89f3 366 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf\r
606340fb
GH
367 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
368 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
369 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
370 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
371!ifdef $(DEBUG_ON_SERIAL_PORT)\r
372 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
373!else\r
374 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
375!endif\r
376 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf\r
377 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf\r
378 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf\r
379 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
606340fb 380 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf\r
606340fb
GH
381!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
382 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf\r
383!endif\r
632574ce
GH
384 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf\r
385 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf\r
386 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf\r
606340fb
GH
387 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf\r
388 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf\r
389 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf\r
606340fb
GH
390\r
391[LibraryClasses.common.UEFI_APPLICATION]\r
392 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
1d3e89f3 393 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf\r
606340fb
GH
394 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
395 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
396 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
397!ifdef $(DEBUG_ON_SERIAL_PORT)\r
398 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
399!else\r
400 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
401!endif\r
632574ce
GH
402 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf\r
403 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf\r
404 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf\r
606340fb
GH
405\r
406[LibraryClasses.common.DXE_SMM_DRIVER]\r
407 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
1d3e89f3 408 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf\r
606340fb
GH
409 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf\r
410 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
411 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
412 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
413 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf\r
414 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf\r
415!ifdef $(DEBUG_ON_SERIAL_PORT)\r
416 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
417!else\r
418 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
419!endif\r
420 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf\r
421!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
422 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf\r
423!endif\r
424 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf\r
632574ce
GH
425 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf\r
426 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf\r
427 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf\r
606340fb
GH
428\r
429[LibraryClasses.common.SMM_CORE]\r
430 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
1d3e89f3 431 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf\r
606340fb
GH
432 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf\r
433 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf\r
434 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
435 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
436 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
437 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf\r
438!ifdef $(DEBUG_ON_SERIAL_PORT)\r
439 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
440!else\r
441 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
442!endif\r
632574ce
GH
443 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf\r
444 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf\r
445 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf\r
606340fb
GH
446\r
447################################################################################\r
448#\r
449# Pcd Section - list of all EDK II PCD Entries defined by this Platform.\r
450#\r
451################################################################################\r
452[PcdsFeatureFlag]\r
453 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE\r
454 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE\r
455 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE\r
456 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r
457 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE\r
458 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE\r
606340fb
GH
459\r
460[PcdsFixedAtBuild]\r
461 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1\r
606340fb 462 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE\r
606340fb
GH
463 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10\r
464 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0\r
465!if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)\r
466 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000\r
467 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800\r
468!if $(NETWORK_TLS_ENABLE) == FALSE\r
469 # match PcdFlashNvStorageVariableSize purely for convenience\r
470 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000\r
471!endif\r
472!endif\r
473!if $(FD_SIZE_IN_KB) == 4096\r
474 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400\r
475 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400\r
476!if $(NETWORK_TLS_ENABLE) == FALSE\r
477 # match PcdFlashNvStorageVariableSize purely for convenience\r
478 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000\r
479!endif\r
480!endif\r
481!if $(NETWORK_TLS_ENABLE) == TRUE\r
482 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000\r
483 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000\r
484!endif\r
485\r
486 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0\r
487 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE\r
488 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE\r
489\r
490 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07\r
491\r
492 # DEBUG_INIT 0x00000001 // Initialization\r
493 # DEBUG_WARN 0x00000002 // Warnings\r
494 # DEBUG_LOAD 0x00000004 // Load events\r
495 # DEBUG_FS 0x00000008 // EFI File system\r
496 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)\r
497 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)\r
498 # DEBUG_INFO 0x00000040 // Informational debug messages\r
499 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers\r
500 # DEBUG_VARIABLE 0x00000100 // Variable\r
501 # DEBUG_BM 0x00000400 // Boot Manager\r
502 # DEBUG_BLKIO 0x00001000 // BlkIo Driver\r
503 # DEBUG_NET 0x00004000 // SNP Driver\r
504 # DEBUG_UNDI 0x00010000 // UNDI Driver\r
505 # DEBUG_LOADFILE 0x00020000 // LoadFile\r
506 # DEBUG_EVENT 0x00080000 // Event messages\r
507 # DEBUG_GCD 0x00100000 // Global Coherency Database changes\r
508 # DEBUG_CACHE 0x00200000 // Memory range cachability changes\r
509 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may\r
510 # // significantly impact boot performance\r
511 # DEBUG_ERROR 0x80000000 // Error\r
512 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F\r
513\r
514!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
515 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17\r
516!else\r
517 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F\r
518!endif\r
519\r
606340fb
GH
520!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
521 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2\r
522!endif\r
523\r
524 #\r
525 # The NumberOfPages values below are ad-hoc. They are updated sporadically at\r
526 # best (please refer to git-blame for past updates). The values capture a set\r
527 # of BIN hints that made sense at a particular time, for some (now likely\r
528 # unknown) workloads / boot paths.\r
529 #\r
530 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80\r
531 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10\r
532 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80\r
533 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100\r
534 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100\r
535\r
536 #\r
537 # Network Pcds\r
538 #\r
539!include NetworkPkg/NetworkPcds.dsc.inc\r
540\r
541 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000\r
542\r
606340fb
GH
543 # IRQs 5, 9, 10, 11 are level-triggered\r
544 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20\r
545\r
546 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf\r
547 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }\r
548\r
55f47d22
GH
549 # microvm serial port^M\r
550 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE\r
551 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialPciDeviceInfo|{0xFF}\r
552 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x3f8\r
553\r
606340fb
GH
554################################################################################\r
555#\r
556# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform\r
557#\r
558################################################################################\r
559\r
560[PcdsDynamicDefault]\r
561 # only set when\r
562 # ($(SMM_REQUIRE) == FALSE)\r
563 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0\r
564\r
606340fb 565 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0\r
2b20a34f 566 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0\r
567 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0\r
606340fb
GH
568 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0\r
569 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0\r
862ea6e8
GH
570 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280\r
571 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800\r
5a176299
GH
572 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0\r
573 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0\r
606340fb 574 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE\r
929804b1 575 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0\r
606340fb
GH
576 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0\r
577 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0\r
578 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0\r
579 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0\r
580 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0\r
581 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0\r
606340fb 582 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000\r
606340fb 583\r
76602f45 584 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000\r
606340fb
GH
585 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0\r
586\r
632574ce
GH
587 # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this\r
588 # PCD and PcdPciDisableBusEnumeration below have not been assigned yet\r
589 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF\r
590 gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x0\r
591 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE\r
592\r
606340fb
GH
593 # Set video resolution for text setup.\r
594 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640\r
595 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480\r
596\r
597 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208\r
598 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0\r
599 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE\r
600\r
601 # Noexec settings for DXE.\r
602 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE\r
603\r
604 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.\r
605 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64\r
606 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0\r
607\r
608 # Set memory encryption mask\r
609 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0\r
610\r
fd306d1d
MX
611 # Set Tdx shared bit mask\r
612 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0\r
613\r
606340fb
GH
614 # Set SEV-ES defaults\r
615 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0\r
616 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0\r
617 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0\r
618\r
606340fb
GH
619 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00\r
620\r
606340fb
GH
621 # IPv4 and IPv6 PXE Boot support.\r
622 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01\r
623 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01\r
624\r
adf070ff
GH
625 # Set ConfidentialComputing defaults\r
626 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0\r
627\r
606340fb
GH
628################################################################################\r
629#\r
630# Components Section - list of all EDK II Modules needed by this Platform.\r
631#\r
632################################################################################\r
633[Components]\r
634 OvmfPkg/ResetVector/ResetVector.inf\r
635\r
636 #\r
637 # SEC Phase modules\r
638 #\r
639 OvmfPkg/Sec/SecMain.inf {\r
640 <LibraryClasses>\r
641 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
642 }\r
643\r
644 #\r
645 # PEI Phase modules\r
646 #\r
647 MdeModulePkg/Core/Pei/PeiMain.inf\r
648 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r
649 <LibraryClasses>\r
650 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
651 }\r
652 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {\r
653 <LibraryClasses>\r
654 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
655 }\r
656 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {\r
657 <LibraryClasses>\r
658 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
659 }\r
660 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf\r
661\r
662 OvmfPkg/PlatformPei/PlatformPei.inf\r
2a49c19b 663 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf\r
606340fb
GH
664 UefiCpuPkg/CpuMpPei/CpuMpPei.inf\r
665\r
606340fb
GH
666 #\r
667 # DXE Phase modules\r
668 #\r
669 MdeModulePkg/Core/Dxe/DxeMain.inf {\r
670 <LibraryClasses>\r
671 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
672 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
673 }\r
674\r
675 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf\r
676 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf\r
677 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {\r
678 <LibraryClasses>\r
679 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
680 }\r
681\r
682 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
683\r
0569c52b 684 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
606340fb 685 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf\r
c2e7be40 686 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf\r
606340fb
GH
687 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf\r
688 UefiCpuPkg/CpuDxe/CpuDxe.inf\r
606340fb
GH
689 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf\r
690 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf\r
691 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {\r
692 <LibraryClasses>\r
632574ce 693 PciHostBridgeLib|OvmfPkg/Fdt/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf\r
606340fb
GH
694 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf\r
695 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf\r
696 }\r
697 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {\r
698 <LibraryClasses>\r
699 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
700 }\r
701 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf\r
702 MdeModulePkg/Universal/Metronome/Metronome.inf\r
703 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf\r
704 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf\r
705 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {\r
706 <LibraryClasses>\r
707 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf\r
606340fb
GH
708 }\r
709 MdeModulePkg/Logo/LogoDxe.inf\r
710 MdeModulePkg/Application/UiApp/UiApp.inf {\r
711 <LibraryClasses>\r
712 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf\r
713 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf\r
714 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf\r
606340fb
GH
715 }\r
716 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {\r
717 <LibraryClasses>\r
718 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf\r
719 }\r
720 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf\r
721 OvmfPkg/Virtio10Dxe/Virtio10.inf\r
722 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r
723 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf\r
724 OvmfPkg/VirtioRngDxe/VirtioRng.inf\r
606340fb
GH
725 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
726 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
727 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
728 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
729 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
730 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {\r
731 <LibraryClasses>\r
732 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
733 }\r
734 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
735 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {\r
736 <LibraryClasses>\r
737 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
738 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
739 }\r
606340fb
GH
740 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
741 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
742 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf\r
743 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
744 FatPkg/EnhancedFatDxe/Fat.inf\r
745 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf\r
746 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf\r
747 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
748 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r
749 OvmfPkg/SataControllerDxe/SataControllerDxe.inf\r
750 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf\r
751 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf\r
752 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf\r
753 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
754 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
755 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
756 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf\r
757\r
606340fb 758 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf\r
606340fb
GH
759 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf\r
760 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf\r
761\r
762 #\r
763 # ISA Support\r
764 #\r
55f47d22 765 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf\r
606340fb 766\r
64ef0dd1
GH
767 #\r
768 # device tree\r
769 #\r
770 EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf\r
2a68abf6 771 OvmfPkg/Fdt/VirtioFdtDxe/VirtioFdtDxe.inf\r
64ef0dd1 772\r
606340fb
GH
773 #\r
774 # SMBIOS Support\r
775 #\r
776 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {\r
777 <LibraryClasses>\r
778 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf\r
779 }\r
780 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf\r
781\r
782 #\r
783 # ACPI Support\r
784 #\r
785 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r
66bce05f 786 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf\r
606340fb
GH
787 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf\r
788 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf\r
789 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf\r
790\r
791 #\r
792 # Network Support\r
793 #\r
794!include NetworkPkg/NetworkComponents.dsc.inc\r
795\r
796 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf {\r
797 <LibraryClasses>\r
798 NULL|OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf\r
799 }\r
800\r
801!if $(NETWORK_TLS_ENABLE) == TRUE\r
802 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {\r
803 <LibraryClasses>\r
804 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf\r
805 }\r
806!endif\r
807 OvmfPkg/VirtioNetDxe/VirtioNet.inf\r
808\r
809 #\r
810 # Usb Support\r
811 #\r
812 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf\r
813 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf\r
814 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf\r
815 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf\r
816 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf\r
817 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf\r
818\r
606340fb
GH
819!if $(TOOL_CHAIN_TAG) != "XCODE5"\r
820 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {\r
821 <PcdsFixedAtBuild>\r
822 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
823 }\r
824 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {\r
825 <PcdsFixedAtBuild>\r
826 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
827 }\r
828 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {\r
829 <PcdsFixedAtBuild>\r
830 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
831 }\r
832!endif\r
833 ShellPkg/Application/Shell/Shell.inf {\r
834 <LibraryClasses>\r
835 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf\r
836 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf\r
837 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf\r
838 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf\r
839 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf\r
840 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf\r
841 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf\r
842 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf\r
843!if $(NETWORK_IP6_ENABLE) == TRUE\r
844 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf\r
845!endif\r
846 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf\r
847 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
848 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf\r
849\r
850 <PcdsFixedAtBuild>\r
851 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF\r
852 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
853 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000\r
854 }\r
855\r
606340fb 856 OvmfPkg/PlatformDxe/Platform.inf\r
606340fb
GH
857 OvmfPkg/IoMmuDxe/IoMmuDxe.inf\r
858\r
606340fb
GH
859 #\r
860 # Variable driver stack (non-SMM)\r
861 #\r
862 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf\r
863 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {\r
864 <LibraryClasses>\r
865 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf\r
866 }\r
867 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r
868 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {\r
869 <LibraryClasses>\r
870 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf\r
871 }\r