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