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