OvmfPkgIa32.dsc 46 KB

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