OvmfPkgIa32X64.dsc 47 KB

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