ArmVirtXen.dsc 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. #
  2. # Copyright (c) 2011-2015, ARM Limited. All rights reserved.
  3. # Copyright (c) 2014, Linaro Limited. All rights reserved.
  4. # Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>
  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 = ArmVirtXen
  16. PLATFORM_GUID = d1c43be3-3373-4a06-86fb-d1cb3083a207
  17. PLATFORM_VERSION = 0.1
  18. DSC_SPECIFICATION = 0x00010005
  19. OUTPUT_DIRECTORY = Build/ArmVirtXen-$(ARCH)
  20. SUPPORTED_ARCHITECTURES = AARCH64|ARM
  21. BUILD_TARGETS = DEBUG|RELEASE|NOOPT
  22. SKUID_IDENTIFIER = DEFAULT
  23. FLASH_DEFINITION = ArmVirtPkg/ArmVirtXen.fdf
  24. !include ArmVirtPkg/ArmVirt.dsc.inc
  25. !include MdePkg/MdeLibs.dsc.inc
  26. [LibraryClasses]
  27. SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
  28. RealTimeClockLib|OvmfPkg/Library/XenRealTimeClockLib/XenRealTimeClockLib.inf
  29. XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
  30. ArmGenericTimerCounterLib|ArmVirtPkg/Library/XenArmGenericTimerVirtCounterLib/XenArmGenericTimerVirtCounterLib.inf
  31. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  32. ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
  33. # Virtio Support
  34. VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
  35. VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
  36. ArmVirtMemInfoLib|ArmVirtPkg/Library/XenVirtMemInfoLib/XenVirtMemInfoLib.inf
  37. TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
  38. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  39. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  40. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  41. PlatformBootManagerLib|ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  42. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  43. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  44. TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.inf
  45. [LibraryClasses.common.UEFI_DRIVER]
  46. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  47. [BuildOptions]
  48. #
  49. # We need to avoid jump tables in SEC modules, so that the PE/COFF
  50. # self-relocation code itself is guaranteed to be position independent.
  51. #
  52. GCC:*_*_*_CC_FLAGS = -fno-jump-tables
  53. ################################################################################
  54. #
  55. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  56. #
  57. ################################################################################
  58. [PcdsFixedAtBuild.common]
  59. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
  60. !if $(ARCH) == AARCH64
  61. gArmTokenSpaceGuid.PcdVFPEnabled|1
  62. !endif
  63. gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
  64. # Size of the region used by UEFI in permanent memory (Reserved 64MB)
  65. gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
  66. #
  67. # ARM Virtual Architectural Timer
  68. #
  69. gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
  70. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  71. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  72. ## Default Terminal Type
  73. ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
  74. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
  75. #
  76. # Make VariableRuntimeDxe work at emulated non-volatile variable mode.
  77. #
  78. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE
  79. [PcdsPatchableInModule.common]
  80. # we need to provide a resolution for this PCD that supports PcdSet64()
  81. # being called from ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.c,
  82. # even though that call will be compiled out on this platform as it does
  83. # not (and cannot) support the TPM2 driver stack
  84. gEfiSecurityPkgTokenSpaceGuid.PcdTpmBaseAddress|0x0
  85. #
  86. # This will be overridden in the code
  87. #
  88. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0
  89. gArmTokenSpaceGuid.PcdSystemMemorySize|0x0
  90. gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x0
  91. gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
  92. gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
  93. [PcdsDynamicDefault.common]
  94. gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
  95. gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
  96. gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
  97. gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
  98. #
  99. # ARM General Interrupt Controller
  100. #
  101. gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
  102. gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
  103. gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
  104. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
  105. ################################################################################
  106. #
  107. # Components Section - list of all EDK II Modules needed by this Platform
  108. #
  109. ################################################################################
  110. [Components.common]
  111. #
  112. # PEI Phase modules
  113. #
  114. ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {
  115. <LibraryClasses>
  116. ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
  117. LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  118. PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
  119. HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
  120. PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
  121. MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
  122. SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
  123. }
  124. #
  125. # DXE
  126. #
  127. MdeModulePkg/Core/Dxe/DxeMain.inf {
  128. <LibraryClasses>
  129. NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
  130. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  131. }
  132. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  133. <LibraryClasses>
  134. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  135. }
  136. #
  137. # Architectural Protocols
  138. #
  139. ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  140. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  141. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  142. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  143. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  144. <LibraryClasses>
  145. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  146. }
  147. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  148. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  149. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
  150. EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
  151. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  152. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  153. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  154. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  155. ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
  156. ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
  157. <LibraryClasses>
  158. NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
  159. }
  160. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  161. #
  162. # Platform Driver
  163. #
  164. ArmVirtPkg/XenioFdtDxe/XenioFdtDxe.inf
  165. EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf
  166. #
  167. # FAT filesystem + GPT/MBR partitioning + UDF filesystem
  168. #
  169. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  170. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  171. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  172. FatPkg/EnhancedFatDxe/Fat.inf
  173. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  174. #
  175. # Bds
  176. #
  177. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  178. <LibraryClasses>
  179. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  180. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  181. }
  182. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  183. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  184. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  185. MdeModulePkg/Application/UiApp/UiApp.inf {
  186. <LibraryClasses>
  187. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  188. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  189. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  190. }
  191. OvmfPkg/XenBusDxe/XenBusDxe.inf
  192. OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
  193. #
  194. # ACPI support
  195. #
  196. ArmVirtPkg/XenPlatformHasAcpiDtDxe/XenPlatformHasAcpiDtDxe.inf
  197. !if $(ARCH) == AARCH64
  198. ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf
  199. !endif