ArmVirtKvmTool.dsc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. # @file
  2. # Workspace file for KVMTool virtual platform.
  3. #
  4. # Copyright (c) 2018 - 2022, ARM Limited. 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 = ArmVirtKvmTool
  16. PLATFORM_GUID = 4CB2C61E-FA32-4130-8E37-54ABC71A1A43
  17. PLATFORM_VERSION = 0.1
  18. DSC_SPECIFICATION = 0x0001001B
  19. !ifdef $(EDK2_OUT_DIR)
  20. OUTPUT_DIRECTORY = $(EDK2_OUT_DIR)
  21. !else
  22. OUTPUT_DIRECTORY = Build/ArmVirtKvmTool-$(ARCH)
  23. !endif
  24. SUPPORTED_ARCHITECTURES = AARCH64|ARM
  25. BUILD_TARGETS = DEBUG|RELEASE
  26. SKUID_IDENTIFIER = DEFAULT
  27. FLASH_DEFINITION = ArmVirtPkg/ArmVirtKvmTool.fdf
  28. [Defines.AARCH64]
  29. DEFINE ACPIVIEW_ENABLE = TRUE
  30. !include ArmVirtPkg/ArmVirt.dsc.inc
  31. !if $(ARCH) == AARCH64
  32. !include DynamicTablesPkg/DynamicTables.dsc.inc
  33. !endif
  34. !include MdePkg/MdeLibs.dsc.inc
  35. [LibraryClasses.common]
  36. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  37. ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
  38. # Virtio Support
  39. VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
  40. VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
  41. ArmPlatformLib|ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf
  42. ArmVirtMemInfoLib|ArmVirtPkg/Library/KvmtoolVirtMemInfoLib/KvmtoolVirtMemInfoLib.inf
  43. TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
  44. VirtNorFlashPlatformLib|ArmVirtPkg/Library/NorFlashKvmtoolLib/NorFlashKvmtoolLib.inf
  45. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  46. # BDS Libraries
  47. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  48. PlatformBootManagerLib|ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  49. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  50. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  51. FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
  52. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  53. PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  54. PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
  55. PciHostBridgeLib|OvmfPkg/Fdt/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
  56. PciHostBridgeUtilityLib|ArmVirtPkg/Library/ArmVirtPciHostBridgeUtilityLib/ArmVirtPciHostBridgeUtilityLib.inf
  57. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  58. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  59. PlatformPeiLib|ArmVirtPkg/Library/KvmtoolPlatformPeiLib/KvmtoolPlatformPeiLib.inf
  60. PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
  61. PlatformHookLib|ArmVirtPkg/Library/Fdt16550SerialPortHookLib/Fdt16550SerialPortHookLib.inf
  62. SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
  63. HwInfoParserLib|DynamicTablesPkg/Library/FdtHwInfoParserLib/FdtHwInfoParserLib.inf
  64. DynamicPlatRepoLib|DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/DynamicPlatRepoLib.inf
  65. ArmMonitorLib|ArmPkg/Library/ArmMonitorLib/ArmMonitorLib.inf
  66. ArmTrngLib|ArmPkg/Library/ArmTrngLib/ArmTrngLib.inf
  67. [LibraryClasses.common.SEC, LibraryClasses.common.PEI_CORE, LibraryClasses.common.PEIM]
  68. PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
  69. PlatformHookLib|ArmVirtPkg/Library/Fdt16550SerialPortHookLib/EarlyFdt16550SerialPortHookLib.inf
  70. SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
  71. [LibraryClasses.common.UEFI_DRIVER]
  72. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  73. [BuildOptions]
  74. *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
  75. #
  76. # We need to avoid jump tables in SEC and BASE modules, so that the PE/COFF
  77. # self-relocation code itself is guaranteed to be position independent.
  78. #
  79. GCC:*_*_*_CC_XIPFLAGS = -fno-jump-tables
  80. ################################################################################
  81. #
  82. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  83. #
  84. ################################################################################
  85. [PcdsFeatureFlag.common]
  86. ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
  87. # It could be set FALSE to save size.
  88. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  89. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  90. # Use MMIO for accessing RTC controller registers.
  91. gPcAtChipsetPkgTokenSpaceGuid.PcdRtcUseMmio|TRUE
  92. gArmTokenSpaceGuid.PcdMonitorConduitHvc|TRUE
  93. [PcdsFixedAtBuild.common]
  94. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F
  95. gArmPlatformTokenSpaceGuid.PcdCoreCount|1
  96. !if $(ARCH) == AARCH64
  97. gArmTokenSpaceGuid.PcdVFPEnabled|1
  98. !endif
  99. gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
  100. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  101. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  102. # Size of the region used by UEFI in permanent memory (Reserved 64MB)
  103. gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
  104. #
  105. # TTY Terminal Type
  106. # 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
  107. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
  108. #
  109. # ARM Virtual Architectural Timer -- fetch frequency from KVM
  110. #
  111. gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
  112. # Use MMIO for accessing Serial port registers.
  113. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|TRUE
  114. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialPciDeviceInfo|{0xFF}
  115. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  116. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  117. #
  118. # The maximum physical I/O addressability of the processor, set with
  119. # BuildCpuHob().
  120. #
  121. gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
  122. [PcdsPatchableInModule.common]
  123. #
  124. # This will be overridden in the code
  125. #
  126. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0
  127. gArmTokenSpaceGuid.PcdSystemMemorySize|0x0
  128. #
  129. # The device tree base address is handed off by kvmtool.
  130. # We are booting from RAM using the Linux kernel boot protocol,
  131. # x0 will point to the DTB image in memory.
  132. #
  133. gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x0
  134. gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
  135. gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
  136. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x0
  137. [PcdsDynamicHii]
  138. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5
  139. [PcdsDynamicDefault.common]
  140. gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
  141. gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
  142. gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
  143. gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
  144. #
  145. # ARM General Interrupt Controller
  146. #
  147. gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
  148. gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
  149. gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
  150. #
  151. # PCI settings
  152. #
  153. gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
  154. # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
  155. # PCD and PcdPciDisableBusEnumeration above have not been assigned yet
  156. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
  157. gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x0
  158. #
  159. # Set video resolution for boot options and for text setup.
  160. # PlatformDxe can set the former at runtime.
  161. #
  162. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
  163. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
  164. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  165. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  166. # Setup Flash storage variables
  167. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0
  168. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x40000
  169. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  170. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x40000
  171. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  172. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x40000
  173. ## RTC Register address in MMIO space.
  174. gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister64|0x0
  175. gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister64|0x0
  176. ################################################################################
  177. #
  178. # Components Section - list of all EDK II Modules needed by this Platform
  179. #
  180. ################################################################################
  181. [Components.common]
  182. #
  183. # PEI Phase modules
  184. #
  185. ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {
  186. <LibraryClasses>
  187. ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
  188. LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  189. PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
  190. HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
  191. PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
  192. MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
  193. }
  194. #
  195. # DXE
  196. #
  197. MdeModulePkg/Core/Dxe/DxeMain.inf {
  198. <LibraryClasses>
  199. NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
  200. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  201. }
  202. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  203. <LibraryClasses>
  204. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  205. }
  206. #
  207. # Architectural Protocols
  208. #
  209. ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  210. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  211. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  212. <LibraryClasses>
  213. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  214. NULL|EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf
  215. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  216. }
  217. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  218. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  219. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf {
  220. <LibraryClasses>
  221. NULL|ArmVirtPkg/Library/NorFlashKvmtoolLib/NorFlashKvmtoolLib.inf
  222. }
  223. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  224. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  225. MdeModulePkg/Universal/Metronome/Metronome.inf
  226. PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf {
  227. <LibraryClasses>
  228. NULL|ArmVirtPkg/Library/KvmtoolRtcFdtClientLib/KvmtoolRtcFdtClientLib.inf
  229. }
  230. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  231. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  232. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
  233. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  234. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  235. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  236. ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
  237. ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
  238. <LibraryClasses>
  239. NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
  240. }
  241. OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.inf
  242. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  243. #
  244. # Platform Driver
  245. #
  246. ArmVirtPkg/KvmtoolPlatformDxe/KvmtoolPlatformDxe.inf
  247. OvmfPkg/Fdt/VirtioFdtDxe/VirtioFdtDxe.inf
  248. EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf
  249. OvmfPkg/Fdt/HighMemDxe/HighMemDxe.inf
  250. OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
  251. OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
  252. OvmfPkg/VirtioNetDxe/VirtioNet.inf
  253. OvmfPkg/VirtioRngDxe/VirtioRng.inf
  254. #
  255. # FAT filesystem + GPT/MBR partitioning + UDF filesystem
  256. #
  257. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  258. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  259. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  260. FatPkg/EnhancedFatDxe/Fat.inf
  261. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  262. #
  263. # Bds
  264. #
  265. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  266. <LibraryClasses>
  267. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  268. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  269. }
  270. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  271. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  272. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  273. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  274. MdeModulePkg/Logo/LogoDxe.inf
  275. MdeModulePkg/Application/UiApp/UiApp.inf {
  276. <LibraryClasses>
  277. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  278. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  279. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  280. }
  281. #
  282. # SCSI Bus and Disk Driver
  283. #
  284. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  285. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  286. #
  287. # PCI support
  288. #
  289. ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf {
  290. <LibraryClasses>
  291. NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  292. NULL|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
  293. }
  294. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  295. <LibraryClasses>
  296. NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  297. NULL|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
  298. }
  299. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  300. <LibraryClasses>
  301. NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  302. NULL|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
  303. }
  304. OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
  305. OvmfPkg/Virtio10Dxe/Virtio10.inf
  306. #
  307. # Rng Support
  308. #
  309. SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
  310. !if $(ARCH) == AARCH64
  311. #
  312. # ACPI Support
  313. #
  314. ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManagerDxe.inf
  315. !endif