OvmfPkgIa32.dsc 42 KB

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