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