ArmVirtQemu.dsc 22 KB

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