ArmVirtQemu.dsc 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. #
  2. # Copyright (c) 2011-2015, ARM Limited. All rights reserved.
  3. # Copyright (c) 2014, Linaro Limited. All rights reserved.
  4. # Copyright (c) 2015 - 2020, Intel Corporation. All rights reserved.
  5. #
  6. # SPDX-License-Identifier: BSD-2-Clause-Patent
  7. #
  8. #
  9. ################################################################################
  10. #
  11. # Defines Section - statements that will be processed to create a Makefile.
  12. #
  13. ################################################################################
  14. [Defines]
  15. PLATFORM_NAME = ArmVirtQemu
  16. PLATFORM_GUID = 37d7e986-f7e9-45c2-8067-e371421a626c
  17. PLATFORM_VERSION = 0.1
  18. DSC_SPECIFICATION = 0x00010005
  19. OUTPUT_DIRECTORY = Build/ArmVirtQemu-$(ARCH)
  20. SUPPORTED_ARCHITECTURES = AARCH64|ARM
  21. BUILD_TARGETS = DEBUG|RELEASE|NOOPT
  22. SKUID_IDENTIFIER = DEFAULT
  23. FLASH_DEFINITION = ArmVirtPkg/ArmVirtQemu.fdf
  24. #
  25. # Defines for default states. These can be changed on the command line.
  26. # -D FLAG=VALUE
  27. #
  28. DEFINE TTY_TERMINAL = FALSE
  29. DEFINE SECURE_BOOT_ENABLE = FALSE
  30. DEFINE TPM2_ENABLE = FALSE
  31. DEFINE TPM2_CONFIG_ENABLE = FALSE
  32. #
  33. # Network definition
  34. #
  35. DEFINE NETWORK_IP6_ENABLE = FALSE
  36. DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
  37. DEFINE NETWORK_SNP_ENABLE = FALSE
  38. DEFINE NETWORK_TLS_ENABLE = FALSE
  39. DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
  40. DEFINE NETWORK_ISCSI_ENABLE = FALSE
  41. !if $(NETWORK_SNP_ENABLE) == TRUE
  42. !error "NETWORK_SNP_ENABLE is IA32/X64/EBC only"
  43. !endif
  44. !include NetworkPkg/NetworkDefines.dsc.inc
  45. !include ArmVirtPkg/ArmVirt.dsc.inc
  46. !include MdePkg/MdeLibs.dsc.inc
  47. [LibraryClasses.common]
  48. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  49. ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
  50. # Virtio Support
  51. VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
  52. VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
  53. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibMmio.inf
  54. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/BaseQemuFwCfgS3LibNull.inf
  55. QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
  56. QemuLoadImageLib|OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.inf
  57. TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
  58. VirtNorFlashPlatformLib|ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf
  59. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  60. CcProbeLib|MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf
  61. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  62. PlatformBootManagerLib|ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  63. PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
  64. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  65. FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
  66. QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
  67. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  68. PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  69. PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
  70. PciHostBridgeLib|OvmfPkg/Fdt/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
  71. PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
  72. PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf
  73. !if $(TPM2_ENABLE) == TRUE
  74. Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
  75. Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf
  76. TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
  77. TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf
  78. !else
  79. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  80. TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.inf
  81. !endif
  82. [LibraryClasses.AARCH64]
  83. ArmPlatformLib|ArmVirtPkg/Library/ArmPlatformLibQemu/ArmPlatformLibQemu.inf
  84. [LibraryClasses.ARM]
  85. ArmPlatformLib|ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf
  86. [LibraryClasses.common.PEIM]
  87. ArmVirtMemInfoLib|ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoPeiLib.inf
  88. !if $(TPM2_ENABLE) == TRUE
  89. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
  90. ResetSystemLib|MdeModulePkg/Library/PeiResetSystemLib/PeiResetSystemLib.inf
  91. Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
  92. !endif
  93. [LibraryClasses.common.DXE_DRIVER]
  94. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  95. !if $(TPM2_ENABLE) == TRUE
  96. Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
  97. !endif
  98. [LibraryClasses.common.UEFI_DRIVER]
  99. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  100. [BuildOptions]
  101. GCC:*_*_AARCH64_CC_XIPFLAGS ==
  102. !include NetworkPkg/NetworkBuildOptions.dsc.inc
  103. ################################################################################
  104. #
  105. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  106. #
  107. ################################################################################
  108. [PcdsFeatureFlag.common]
  109. gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation|TRUE
  110. gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTranslation|TRUE
  111. ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
  112. # It could be set FALSE to save size.
  113. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  114. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  115. gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
  116. gArmVirtTokenSpaceGuid.PcdTpm2SupportEnabled|$(TPM2_ENABLE)
  117. [PcdsFixedAtBuild.common]
  118. !if $(ARCH) == AARCH64
  119. gArmTokenSpaceGuid.PcdVFPEnabled|1
  120. !endif
  121. gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000
  122. gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
  123. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  124. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  125. !if $(NETWORK_TLS_ENABLE) == TRUE
  126. #
  127. # The cumulative and individual VOLATILE variable size limits should be set
  128. # high enough for accommodating several and/or large CA certificates.
  129. #
  130. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
  131. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
  132. !endif
  133. # Size of the region used by UEFI in permanent memory (Reserved 64MB)
  134. gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
  135. #
  136. # ARM PrimeCell
  137. #
  138. ## PL011 - Serial Terminal
  139. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
  140. ## Default Terminal Type
  141. ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
  142. !if $(TTY_TERMINAL) == TRUE
  143. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
  144. # Set terminal type to TtyTerm, the value encoded is EFI_TTY_TERM_GUID
  145. gArmVirtTokenSpaceGuid.PcdTerminalTypeGuidBuffer|{0x80, 0x6d, 0x91, 0x7d, 0xb1, 0x5b, 0x8c, 0x45, 0xa4, 0x8f, 0xe2, 0x5f, 0xdd, 0x51, 0xef, 0x94}
  146. !else
  147. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|1
  148. !endif
  149. #
  150. # ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM
  151. #
  152. gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
  153. #
  154. # Network Pcds
  155. #
  156. !include NetworkPkg/NetworkPcds.dsc.inc
  157. # System Memory Base -- fixed at 0x4000_0000
  158. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000
  159. # initial location of the device tree blob passed by QEMU -- base of DRAM
  160. gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000
  161. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  162. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  163. #
  164. # The maximum physical I/O addressability of the processor, set with
  165. # BuildCpuHob().
  166. #
  167. gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
  168. #
  169. # Enable the non-executable DXE stack. (This gets set up by DxeIpl)
  170. #
  171. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
  172. !if $(SECURE_BOOT_ENABLE) == TRUE
  173. # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot
  174. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
  175. gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
  176. gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
  177. !endif
  178. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|3
  179. gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
  180. # Shadowing PEI modules is absolutely pointless when the NOR flash is emulated
  181. gEfiMdeModulePkgTokenSpaceGuid.PcdShadowPeimOnBoot|FALSE
  182. # System Memory Size -- 128 MB initially, actual size will be fetched from DT
  183. gArmTokenSpaceGuid.PcdSystemMemorySize|0x8000000
  184. [PcdsFixedAtBuild.AARCH64]
  185. # Clearing BIT0 in this PCD prevents installing a 32-bit SMBIOS entry point,
  186. # if the entry point version is >= 3.0. AARCH64 OSes cannot assume the
  187. # presence of the 32-bit entry point anyway (because many AARCH64 systems
  188. # don't have 32-bit addressable physical RAM), and the additional allocations
  189. # below 4 GB needlessly fragment the memory map. So expose the 64-bit entry
  190. # point only, for entry point versions >= 3.0.
  191. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosEntryPointProvideMethod|0x2
  192. [PcdsDynamicDefault.common]
  193. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
  194. ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
  195. # enumeration to complete before installing ACPI tables.
  196. gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
  197. gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
  198. gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
  199. gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
  200. gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
  201. #
  202. # ARM General Interrupt Controller
  203. #
  204. gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
  205. gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
  206. gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
  207. ## PL031 RealTimeClock
  208. gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
  209. # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
  210. # PCD and PcdPciDisableBusEnumeration above have not been assigned yet
  211. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
  212. gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x0
  213. #
  214. # Set video resolution for boot options and for text setup.
  215. # PlatformDxe can set the former at runtime.
  216. #
  217. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
  218. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
  219. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  220. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  221. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
  222. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
  223. #
  224. # SMBIOS entry point version
  225. #
  226. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0300
  227. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  228. gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
  229. #
  230. # IPv4 and IPv6 PXE Boot support.
  231. #
  232. gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
  233. gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
  234. #
  235. # TPM2 support
  236. #
  237. !if $(TPM2_ENABLE) == TRUE
  238. gEfiSecurityPkgTokenSpaceGuid.PcdTpmBaseAddress|0x0
  239. gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
  240. gEfiSecurityPkgTokenSpaceGuid.PcdTpm2HashMask|0
  241. !else
  242. [PcdsPatchableInModule]
  243. # make this PCD patchable instead of dynamic when TPM support is not enabled
  244. # this permits setting the PCD in unreachable code without pulling in dynamic PCD support
  245. gEfiSecurityPkgTokenSpaceGuid.PcdTpmBaseAddress|0x0
  246. !endif
  247. [PcdsDynamicHii]
  248. gArmVirtTokenSpaceGuid.PcdForceNoAcpi|L"ForceNoAcpi"|gArmVirtVariableGuid|0x0|FALSE|NV,BS
  249. !if $(TPM2_CONFIG_ENABLE) == TRUE
  250. gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
  251. gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS
  252. !endif
  253. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5
  254. [LibraryClasses.common.PEI_CORE, LibraryClasses.common.PEIM]
  255. !if $(TPM2_ENABLE) == TRUE
  256. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  257. !else
  258. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  259. !endif
  260. ################################################################################
  261. #
  262. # Components Section - list of all EDK II Modules needed by this Platform
  263. #
  264. ################################################################################
  265. [Components.common]
  266. #
  267. # PEI Phase modules
  268. #
  269. ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
  270. MdeModulePkg/Core/Pei/PeiMain.inf
  271. ArmPlatformPkg/PlatformPei/PlatformPeim.inf
  272. ArmVirtPkg/MemoryInitPei/MemoryInitPeim.inf {
  273. <LibraryClasses>
  274. !if $(ARCH) == AARCH64
  275. ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuPeiLib.inf
  276. !endif
  277. }
  278. ArmPkg/Drivers/CpuPei/CpuPei.inf
  279. !if $(TPM2_ENABLE) == TRUE
  280. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  281. <LibraryClasses>
  282. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  283. }
  284. MdeModulePkg/Universal/ResetSystemPei/ResetSystemPei.inf {
  285. <LibraryClasses>
  286. ResetSystemLib|ArmVirtPkg/Library/ArmVirtPsciResetSystemPeiLib/ArmVirtPsciResetSystemPeiLib.inf
  287. }
  288. OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
  289. SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
  290. <LibraryClasses>
  291. HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
  292. NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
  293. NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
  294. NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
  295. NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
  296. NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
  297. }
  298. !endif
  299. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
  300. <LibraryClasses>
  301. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  302. }
  303. #
  304. # DXE
  305. #
  306. MdeModulePkg/Core/Dxe/DxeMain.inf {
  307. <LibraryClasses>
  308. NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
  309. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  310. }
  311. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  312. <LibraryClasses>
  313. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  314. }
  315. #
  316. # Architectural Protocols
  317. #
  318. ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  319. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  320. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  321. <LibraryClasses>
  322. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  323. NULL|EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf
  324. # don't use unaligned CopyMem () on the UEFI varstore NOR flash region
  325. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  326. }
  327. !if $(SECURE_BOOT_ENABLE) == TRUE
  328. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  329. <LibraryClasses>
  330. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  331. !if $(TPM2_ENABLE) == TRUE
  332. NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
  333. !endif
  334. }
  335. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  336. OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
  337. !else
  338. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  339. !endif
  340. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  341. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  342. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  343. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  344. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf {
  345. <LibraryClasses>
  346. NULL|ArmVirtPkg/Library/ArmVirtPL031FdtClientLib/ArmVirtPL031FdtClientLib.inf
  347. }
  348. EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
  349. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  350. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  351. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
  352. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  353. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  354. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  355. ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
  356. ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
  357. <LibraryClasses>
  358. NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
  359. }
  360. OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.inf
  361. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  362. #
  363. # Status Code Routing
  364. #
  365. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  366. #
  367. # Platform Driver
  368. #
  369. OvmfPkg/Fdt/VirtioFdtDxe/VirtioFdtDxe.inf
  370. EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf
  371. OvmfPkg/Fdt/HighMemDxe/HighMemDxe.inf
  372. OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
  373. OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
  374. OvmfPkg/VirtioNetDxe/VirtioNet.inf
  375. OvmfPkg/VirtioRngDxe/VirtioRng.inf
  376. #
  377. # FAT filesystem + GPT/MBR partitioning + UDF filesystem + virtio-fs
  378. #
  379. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  380. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  381. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  382. FatPkg/EnhancedFatDxe/Fat.inf
  383. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  384. OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
  385. #
  386. # Bds
  387. #
  388. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  389. <LibraryClasses>
  390. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  391. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  392. }
  393. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  394. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  395. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  396. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  397. MdeModulePkg/Logo/LogoDxe.inf
  398. MdeModulePkg/Application/UiApp/UiApp.inf {
  399. <LibraryClasses>
  400. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  401. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  402. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  403. }
  404. OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
  405. <LibraryClasses>
  406. NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
  407. }
  408. #
  409. # Networking stack
  410. #
  411. !include NetworkPkg/NetworkComponents.dsc.inc
  412. NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf {
  413. <LibraryClasses>
  414. NULL|OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf
  415. }
  416. !if $(NETWORK_TLS_ENABLE) == TRUE
  417. NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
  418. <LibraryClasses>
  419. NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
  420. }
  421. !endif
  422. #
  423. # SCSI Bus and Disk Driver
  424. #
  425. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  426. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  427. #
  428. # NVME Driver
  429. #
  430. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  431. #
  432. # SMBIOS Support
  433. #
  434. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
  435. <LibraryClasses>
  436. NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
  437. }
  438. OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  439. #
  440. # PCI support
  441. #
  442. ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf {
  443. <LibraryClasses>
  444. NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  445. }
  446. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
  447. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  448. <LibraryClasses>
  449. NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  450. }
  451. OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
  452. OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
  453. OvmfPkg/Virtio10Dxe/Virtio10.inf
  454. #
  455. # Video support
  456. #
  457. OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
  458. OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
  459. OvmfPkg/PlatformDxe/Platform.inf
  460. #
  461. # USB Support
  462. #
  463. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  464. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  465. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  466. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  467. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  468. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  469. #
  470. # TPM2 support
  471. #
  472. !if $(TPM2_ENABLE) == TRUE
  473. SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
  474. <LibraryClasses>
  475. HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
  476. Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
  477. NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
  478. NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
  479. NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
  480. NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
  481. NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
  482. NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
  483. }
  484. !if $(TPM2_CONFIG_ENABLE) == TRUE
  485. SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
  486. !endif
  487. !endif
  488. #
  489. # ACPI Support
  490. #
  491. ArmVirtPkg/PlatformHasAcpiDtDxe/PlatformHasAcpiDtDxe.inf
  492. [Components.AARCH64]
  493. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  494. OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf {
  495. <LibraryClasses>
  496. NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  497. }