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