VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/OvmfPkgIa32X64.dsc

最後變更 在這個檔案是 105670,由 vboxsync 提交於 3 月 前

Devices/EFI/FirmwareNew: Merge edk2-stable-202405 and make it build on aarch64, bugref:4643

  • 屬性 svn:eol-style 設為 native
檔案大小: 41.9 KB
 
1## @file
2# EFI/Framework Open Virtual Machine Firmware (OVMF) platform
3#
4# Copyright (c) 2006 - 2023, Intel Corporation. All rights reserved.<BR>
5# (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
6# Copyright (c) Microsoft Corporation.
7# Copyright (C) 2023 - 2024, Advanced Micro Devices, Inc. All rights reserved.<BR>
8#
9# SPDX-License-Identifier: BSD-2-Clause-Patent
10#
11##
12
13################################################################################
14#
15# Defines Section - statements that will be processed to create a Makefile.
16#
17################################################################################
18[Defines]
19 PLATFORM_NAME = Ovmf
20 PLATFORM_GUID = 5a9e7754-d81b-49ea-85ad-69eaa7b1539b
21 PLATFORM_VERSION = 0.1
22 DSC_SPECIFICATION = 0x00010005
23 OUTPUT_DIRECTORY = Build/Ovmf3264
24 SUPPORTED_ARCHITECTURES = IA32|X64
25 BUILD_TARGETS = NOOPT|DEBUG|RELEASE
26 SKUID_IDENTIFIER = DEFAULT
27 FLASH_DEFINITION = OvmfPkg/OvmfPkgIa32X64.fdf
28
29 #
30 # Defines for default states. These can be changed on the command line.
31 # -D FLAG=VALUE
32 #
33 DEFINE SECURE_BOOT_ENABLE = FALSE
34 DEFINE SMM_REQUIRE = FALSE
35 DEFINE SOURCE_DEBUG_ENABLE = FALSE
36
37!include OvmfPkg/Include/Dsc/OvmfTpmDefines.dsc.inc
38
39 #
40 # Shell can be useful for debugging but should not be enabled for production
41 #
42 DEFINE BUILD_SHELL = TRUE
43
44 #
45 # Network definition
46 #
47 DEFINE NETWORK_TLS_ENABLE = FALSE
48 DEFINE NETWORK_IP6_ENABLE = FALSE
49 DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
50 DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
51 DEFINE NETWORK_ISCSI_ENABLE = TRUE
52
53!include NetworkPkg/NetworkDefines.dsc.inc
54
55 #
56 # Device drivers
57 #
58 DEFINE PVSCSI_ENABLE = FALSE
59 DEFINE MPT_SCSI_ENABLE = FALSE
60 DEFINE LSI_SCSI_ENABLE = FALSE
61
62 #
63 # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
64 # one of the supported values, in place of any of the convenience macros, is
65 # permitted.
66 #
67!ifdef $(FD_SIZE_1MB)
68 DEFINE FD_SIZE_IN_KB = 1024
69!else
70!ifdef $(FD_SIZE_2MB)
71 DEFINE FD_SIZE_IN_KB = 2048
72!else
73!ifdef $(FD_SIZE_4MB)
74 DEFINE FD_SIZE_IN_KB = 4096
75!else
76 DEFINE FD_SIZE_IN_KB = 4096
77!endif
78!endif
79!endif
80
81!include OvmfPkg/Include/Dsc/OvmfPkg.dsc.inc
82
83[BuildOptions]
84 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
85 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
86 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
87!if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
88 GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
89!endif
90!if $(SOURCE_DEBUG_ENABLE) == TRUE
91 MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
92 GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
93 INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
94!endif
95 RELEASE_*_*_GENFW_FLAGS = --zero
96
97 #
98 # Disable deprecated APIs.
99 #
100 MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
101 INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
102 GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
103
104!include NetworkPkg/NetworkBuildOptions.dsc.inc
105
106[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
107 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
108 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
109 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
110 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
111
112# Force PE/COFF sections to be aligned at 4KB boundaries to support page level
113# protection of DXE_SMM_DRIVER/SMM_CORE modules
114[BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
115 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
116 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
117 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
118 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
119
120################################################################################
121#
122# SKU Identification section - list of all SKU IDs supported by this Platform.
123#
124################################################################################
125[SkuIds]
126 0|DEFAULT
127
128################################################################################
129#
130# Library Class section - list of all Library Classes needed by this Platform.
131#
132################################################################################
133
134!include MdePkg/MdeLibs.dsc.inc
135
136[LibraryClasses]
137 SmmRelocationLib|OvmfPkg/Library/SmmRelocationLib/SmmRelocationLib.inf
138 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
139 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
140 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf
141 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
142 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
143 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
144 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
145 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
146 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
147 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
148 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
149 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
150 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
151 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
152 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
153 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
154 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
155 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
156 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
157 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
158 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
159 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
160 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
161 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
162 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
163 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
164 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
165 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
166 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
167 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
168 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
169 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
170 CcProbeLib|MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf
171 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
172 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
173 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
174 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
175 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
176 CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
177 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
178 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
179 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
180 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
181 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
182 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
183 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
184 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
185 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
186 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
187 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
188 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
189 QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
190 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
191 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
192 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
193 MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLibNull.inf
194 PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf
195 DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
196 ImagePropertiesRecordLib|MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf
197 HstiLib|MdePkg/Library/DxeHstiLib/DxeHstiLib.inf
198!if $(SMM_REQUIRE) == FALSE
199 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
200!endif
201 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
202 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
203
204!if $(SOURCE_DEBUG_ENABLE) == TRUE
205 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
206 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
207!else
208 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
209 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
210!endif
211
212 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
213 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
214
215 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
216!if $(NETWORK_TLS_ENABLE) == TRUE
217 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
218!else
219 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
220!endif
221 RngLib|MdeModulePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
222
223!if $(SECURE_BOOT_ENABLE) == TRUE
224 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
225 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
226 SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
227 PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
228 SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
229!else
230 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
231!endif
232 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
233 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
234 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
235 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
236
237 #
238 # Network libraries
239 #
240!include NetworkPkg/NetworkLibs.dsc.inc
241
242!if $(NETWORK_TLS_ENABLE) == TRUE
243 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
244!endif
245
246 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
247
248 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
249 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
250 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
251
252!include OvmfPkg/Include/Dsc/OvmfTpmLibs.dsc.inc
253!include OvmfPkg/Include/Dsc/ShellLibs.dsc.inc
254
255[LibraryClasses.common]
256 AmdSvsmLib|UefiCpuPkg/Library/AmdSvsmLibNull/AmdSvsmLibNull.inf
257 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
258 CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
259 TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
260 TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLibNull.inf
261
262[LibraryClasses.common.SEC]
263 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
264 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
265!ifdef $(DEBUG_ON_SERIAL_PORT)
266 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
267!else
268 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
269!endif
270 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
271 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
272!if $(SOURCE_DEBUG_ENABLE) == TRUE
273 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
274!endif
275 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
276 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
277 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
278 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
279 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
280 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
281
282[LibraryClasses.common.PEI_CORE]
283 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
284 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
285 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
286 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
287 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
288 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
289 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
290 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
291!ifdef $(DEBUG_ON_SERIAL_PORT)
292 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
293!else
294 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
295!endif
296 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
297
298[LibraryClasses.common.PEIM]
299 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
300 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
301 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
302 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
303 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
304 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
305 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
306 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
307!ifdef $(DEBUG_ON_SERIAL_PORT)
308 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
309!else
310 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
311!endif
312 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
313 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
314 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
315!if $(SOURCE_DEBUG_ENABLE) == TRUE
316 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
317!endif
318 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
319 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
320 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
321 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
322 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
323 PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
324
325 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
326
327[LibraryClasses.common.DXE_CORE]
328 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
329 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
330 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
331 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
332!ifdef $(DEBUG_ON_SERIAL_PORT)
333 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
334!else
335 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
336!endif
337 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
338!if $(SOURCE_DEBUG_ENABLE) == TRUE
339 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
340!endif
341 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
342 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
343
344[LibraryClasses.common.DXE_RUNTIME_DRIVER]
345 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
346 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
347 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
348 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
349 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
350 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
351 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
352!ifdef $(DEBUG_ON_SERIAL_PORT)
353 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
354!else
355 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
356!endif
357 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
358 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
359 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
360 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
361 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
362!if $(SMM_REQUIRE) == TRUE
363 MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
364!endif
365
366[LibraryClasses.common.UEFI_DRIVER]
367 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
368 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
369 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
370 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
371 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
372 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
373 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
374!ifdef $(DEBUG_ON_SERIAL_PORT)
375 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
376!else
377 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
378!endif
379 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
380 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
381
382[LibraryClasses.common.DXE_DRIVER]
383 AcpiPlatformLib|OvmfPkg/Library/AcpiPlatformLib/DxeAcpiPlatformLib.inf
384 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
385 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
386 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
387 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
388 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
389 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
390 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
391!ifdef $(DEBUG_ON_SERIAL_PORT)
392 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
393!else
394 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
395!endif
396 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
397 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
398 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
399 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
400!if $(SMM_REQUIRE) == TRUE
401 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
402!else
403 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
404!endif
405!if $(SOURCE_DEBUG_ENABLE) == TRUE
406 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
407!endif
408 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
409 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
410 NestedInterruptTplLib|OvmfPkg/Library/NestedInterruptTplLib/NestedInterruptTplLib.inf
411 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
412 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
413
414[LibraryClasses.common.UEFI_APPLICATION]
415 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
416 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
417 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
418 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
419 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
420 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
421!ifdef $(DEBUG_ON_SERIAL_PORT)
422 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
423!else
424 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
425!endif
426 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
427
428[LibraryClasses.common.DXE_SMM_DRIVER]
429 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
430 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
431 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
432 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
433 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
434 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
435 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
436 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
437 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
438!ifdef $(DEBUG_ON_SERIAL_PORT)
439 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
440!else
441 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
442!endif
443 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
444!if $(SOURCE_DEBUG_ENABLE) == TRUE
445 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
446!endif
447 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
448 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
449 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
450 MmSaveStateLib|UefiCpuPkg/Library/MmSaveStateLib/AmdMmSaveStateLib.inf
451
452[LibraryClasses.common.SMM_CORE]
453 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
454 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
455 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
456 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
457 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
458 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
459 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
460 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
461 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
462!ifdef $(DEBUG_ON_SERIAL_PORT)
463 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
464!else
465 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
466!endif
467 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
468
469################################################################################
470#
471# Pcd Section - list of all EDK II PCD Entries defined by this Platform.
472#
473################################################################################
474[PcdsFeatureFlag]
475 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
476 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
477 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE
478 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
479 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
480 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
481!if $(SMM_REQUIRE) == TRUE
482 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
483 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
484 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
485!endif
486!if $(SECURE_BOOT_ENABLE) == TRUE
487 gUefiOvmfPkgTokenSpaceGuid.PcdSecureBootSupported|TRUE
488 gEfiMdeModulePkgTokenSpaceGuid.PcdRequireSelfSignedPk|TRUE
489!endif
490
491[PcdsFixedAtBuild]
492 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
493!if $(SMM_REQUIRE) == FALSE
494 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
495!endif
496 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
497 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
498!if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
499 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
500 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
501!if $(NETWORK_TLS_ENABLE) == FALSE
502 # match PcdFlashNvStorageVariableSize purely for convenience
503 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
504!endif
505!endif
506!if $(FD_SIZE_IN_KB) == 4096
507 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
508 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
509!if $(NETWORK_TLS_ENABLE) == FALSE
510 # match PcdFlashNvStorageVariableSize purely for convenience
511 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
512!endif
513!endif
514!if $(NETWORK_TLS_ENABLE) == TRUE
515 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
516 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
517!endif
518
519 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
520 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
521 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
522
523 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
524
525 # DEBUG_INIT 0x00000001 // Initialization
526 # DEBUG_WARN 0x00000002 // Warnings
527 # DEBUG_LOAD 0x00000004 // Load events
528 # DEBUG_FS 0x00000008 // EFI File system
529 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
530 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
531 # DEBUG_INFO 0x00000040 // Informational debug messages
532 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
533 # DEBUG_VARIABLE 0x00000100 // Variable
534 # DEBUG_BM 0x00000400 // Boot Manager
535 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
536 # DEBUG_NET 0x00004000 // SNP Driver
537 # DEBUG_UNDI 0x00010000 // UNDI Driver
538 # DEBUG_LOADFILE 0x00020000 // LoadFile
539 # DEBUG_EVENT 0x00080000 // Event messages
540 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
541 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
542 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
543 # // significantly impact boot performance
544 # DEBUG_ERROR 0x80000000 // Error
545 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
546
547!if $(SOURCE_DEBUG_ENABLE) == TRUE
548 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
549!else
550 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
551!endif
552
553 # This PCD is used to set the base address of the PCI express hierarchy. It
554 # is only consulted when OVMF runs on Q35. In that case it is programmed into
555 # the PCIEXBAR register.
556 #
557 # On Q35 machine types that QEMU intends to support in the long term, QEMU
558 # never lets the RAM below 4 GB exceed 2816 MB.
559 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
560
561 # use 1G pages
562 gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
563
564!if $(SOURCE_DEBUG_ENABLE) == TRUE
565 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
566!endif
567 #
568 # INIT is now triggered before BIOS by ucode/hardware. In the OVMF
569 # environment, QEMU lacks a simulation for the INIT process.
570 # To address this, PcdFirstTimeWakeUpAPsBySipi set to FALSE to
571 # broadcast INIT-SIPI-SIPI for the first time.
572 #
573 gUefiCpuPkgTokenSpaceGuid.PcdFirstTimeWakeUpAPsBySipi|FALSE
574
575[PcdsFixedAtBuild.IA32]
576 #
577 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
578 # best (please refer to git-blame for past updates). The values capture a set
579 # of BIN hints that made sense at a particular time, for some (now likely
580 # unknown) workloads / boot paths.
581 #
582 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
583 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x12
584 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
585 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
586 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
587
588[PcdsFixedAtBuild.X64]
589 #
590 # Network Pcds
591 #
592!include NetworkPkg/NetworkPcds.dsc.inc
593
594 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
595
596!if $(SMM_REQUIRE) == TRUE
597 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
598!endif
599
600 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
601 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
602
603################################################################################
604#
605# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
606#
607################################################################################
608
609[PcdsDynamicDefault]
610 # only set when
611 # ($(SMM_REQUIRE) == FALSE)
612 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
613
614!if $(SMM_REQUIRE) == FALSE
615 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
616 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
617 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
618 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
619 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
620!endif
621 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
622 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
623 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
624 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
625 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
626 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
627 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
628 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
629 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
630 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
631 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
632 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
633 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
634
635 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
636
637 # Set video resolution for text setup.
638 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
639 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
640
641 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
642 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
643 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
644
645 # Noexec settings for DXE.
646 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
647
648 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
649 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
650 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
651
652 # Set memory encryption mask
653 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
654 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
655
656 # Set SEV-ES defaults
657 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
658 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
659 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
660
661!if $(SMM_REQUIRE) == TRUE
662 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
663 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
664 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
665 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
666!endif
667
668 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
669
670!include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
671
672 # Set ConfidentialComputing defaults
673 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
674
675 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
676
677[PcdsDynamicDefault.X64]
678 # IPv4 and IPv6 PXE Boot support.
679 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
680 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
681
682[PcdsDynamicHii]
683!include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
684
685################################################################################
686#
687# Components Section - list of all EDK II Modules needed by this Platform.
688#
689################################################################################
690[Components.IA32]
691 OvmfPkg/ResetVector/ResetVector.inf
692
693 #
694 # SEC Phase modules
695 #
696 OvmfPkg/Sec/SecMain.inf {
697 <LibraryClasses>
698 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
699 }
700
701 #
702 # PEI Phase modules
703 #
704 MdeModulePkg/Core/Pei/PeiMain.inf
705 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
706 <LibraryClasses>
707 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
708 }
709 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
710 <LibraryClasses>
711 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
712 }
713 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
714 <LibraryClasses>
715 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
716 }
717 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
718
719 OvmfPkg/PlatformPei/PlatformPei.inf
720 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
721 <LibraryClasses>
722!if $(SMM_REQUIRE) == TRUE
723 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
724!endif
725 }
726!if $(SMM_REQUIRE) == TRUE
727 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
728 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
729 OvmfPkg/SmmAccess/SmmAccessPei.inf
730!endif
731 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
732
733!include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
734
735[Components.X64]
736 #
737 # DXE Phase modules
738 #
739 MdeModulePkg/Core/Dxe/DxeMain.inf {
740 <LibraryClasses>
741 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
742 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
743 }
744
745 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
746 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
747 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
748 <LibraryClasses>
749 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
750 }
751
752 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
753
754 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
755 <LibraryClasses>
756!if $(SECURE_BOOT_ENABLE) == TRUE
757 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
758!endif
759!include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
760 }
761
762 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
763 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
764 UefiCpuPkg/CpuDxe/CpuDxe.inf
765 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
766 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
767 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
768 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
769 <LibraryClasses>
770 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
771 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
772 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
773 }
774 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
775 <LibraryClasses>
776 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
777 }
778 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
779 MdeModulePkg/Universal/Metronome/Metronome.inf
780 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
781 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
782 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
783 <LibraryClasses>
784 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
785 }
786 MdeModulePkg/Logo/LogoDxe.inf
787 MdeModulePkg/Application/UiApp/UiApp.inf {
788 <LibraryClasses>
789 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
790 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
791 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
792 }
793 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
794 <LibraryClasses>
795 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
796 }
797 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
798 OvmfPkg/Virtio10Dxe/Virtio10.inf
799 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
800 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
801 OvmfPkg/VirtioRngDxe/VirtioRng.inf
802 OvmfPkg/VirtioSerialDxe/VirtioSerial.inf
803!if $(PVSCSI_ENABLE) == TRUE
804 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
805!endif
806!if $(MPT_SCSI_ENABLE) == TRUE
807 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
808!endif
809!if $(LSI_SCSI_ENABLE) == TRUE
810 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
811!endif
812 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
813 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
814 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
815 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
816 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
817 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
818 <LibraryClasses>
819 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
820 }
821 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
822 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
823 <LibraryClasses>
824 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
825 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
826 }
827 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
828 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
829 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
830 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
831 FatPkg/EnhancedFatDxe/Fat.inf
832 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
833 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
834 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
835 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
836 MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
837 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
838 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
839 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
840 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
841 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
842 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
843
844 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
845 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
846 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
847 OvmfPkg/VirtHstiDxe/VirtHstiDxe.inf
848
849 #
850 # ISA Support
851 #
852 OvmfPkg/SioBusDxe/SioBusDxe.inf
853 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
854 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
855
856 #
857 # SMBIOS Support
858 #
859 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
860 <LibraryClasses>
861 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
862 }
863 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
864
865 #
866 # ACPI Support
867 #
868 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
869 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
870 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
871 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
872 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
873
874 #
875 # Hash2 Protocol producer
876 #
877 SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf
878
879 #
880 # Network Support
881 #
882!include NetworkPkg/NetworkComponents.dsc.inc
883!include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
884
885 OvmfPkg/VirtioNetDxe/VirtioNet.inf
886
887 #
888 # Usb Support
889 #
890 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
891 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
892 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
893 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
894 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
895 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
896
897!include OvmfPkg/Include/Dsc/ShellComponents.dsc.inc
898
899!if $(SECURE_BOOT_ENABLE) == TRUE
900 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
901 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
902!endif
903
904 OvmfPkg/PlatformDxe/Platform.inf
905 OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
906 <LibraryClasses>
907 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
908 }
909 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
910
911!if $(SMM_REQUIRE) == TRUE
912 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
913 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
914 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
915
916 #
917 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
918 #
919 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
920
921 #
922 # SMM_CORE
923 #
924 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
925
926 #
927 # Privileged drivers (DXE_SMM_DRIVER modules)
928 #
929 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
930 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
931 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
932 <LibraryClasses>
933 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
934 }
935 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
936 <LibraryClasses>
937 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
938 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
939 MmSaveStateLib|UefiCpuPkg/Library/MmSaveStateLib/AmdMmSaveStateLib.inf
940 SmmCpuSyncLib|UefiCpuPkg/Library/SmmCpuSyncLib/SmmCpuSyncLib.inf
941 }
942
943 #
944 # Variable driver stack (SMM)
945 #
946 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
947 <LibraryClasses>
948 CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
949 }
950 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
951 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
952 <LibraryClasses>
953 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
954 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
955 }
956 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
957
958!else
959
960 #
961 # Variable driver stack (non-SMM)
962 #
963 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
964 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
965 <LibraryClasses>
966 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
967 }
968 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
969 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
970 <LibraryClasses>
971 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
972 }
973!endif
974
975 #
976 # TPM support
977 #
978!include OvmfPkg/Include/Dsc/OvmfTpmComponentsDxe.dsc.inc
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette