ArmVirtXen.dsc 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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. # This program and the accompanying materials
  7. # are licensed and made available under the terms and conditions of the BSD License
  8. # which accompanies this distribution. The full text of the license may be found at
  9. # http://opensource.org/licenses/bsd-license.php
  10. #
  11. # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
  13. #
  14. #
  15. ################################################################################
  16. #
  17. # Defines Section - statements that will be processed to create a Makefile.
  18. #
  19. ################################################################################
  20. [Defines]
  21. PLATFORM_NAME = ArmVirtXen
  22. PLATFORM_GUID = d1c43be3-3373-4a06-86fb-d1cb3083a207
  23. PLATFORM_VERSION = 0.1
  24. DSC_SPECIFICATION = 0x00010005
  25. OUTPUT_DIRECTORY = Build/ArmVirtXen-$(ARCH)
  26. SUPPORTED_ARCHITECTURES = AARCH64|ARM
  27. BUILD_TARGETS = DEBUG|RELEASE|NOOPT
  28. SKUID_IDENTIFIER = DEFAULT
  29. FLASH_DEFINITION = ArmVirtPkg/ArmVirtXen.fdf
  30. !include ArmVirtPkg/ArmVirt.dsc.inc
  31. [LibraryClasses]
  32. SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
  33. RealTimeClockLib|ArmVirtPkg/Library/XenRealTimeClockLib/XenRealTimeClockLib.inf
  34. XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
  35. ArmGenericTimerCounterLib|ArmVirtPkg/Library/XenArmGenericTimerVirtCounterLib/XenArmGenericTimerVirtCounterLib.inf
  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. ArmVirtMemInfoLib|ArmVirtPkg/Library/XenVirtMemInfoLib/XenVirtMemInfoLib.inf
  42. TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
  43. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  44. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  45. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  46. PlatformBootManagerLib|ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  47. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  48. [LibraryClasses.common.UEFI_DRIVER]
  49. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  50. [BuildOptions.common.EDKII.SEC, BuildOptions.common.EDKII.BASE]
  51. #
  52. # CLANG38 with LTO support enabled uses the GNU GOLD linker, which insists
  53. # on emitting GOT based symbol references when running in shared mode, unless
  54. # we override visibility to 'hidden' in all modules that make up the PrePi
  55. # build.
  56. #
  57. GCC:*_CLANG38_*_CC_FLAGS = -include $(WORKSPACE)/ArmVirtPkg/Include/Platform/Hidden.h
  58. ################################################################################
  59. #
  60. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  61. #
  62. ################################################################################
  63. [PcdsFixedAtBuild.common]
  64. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
  65. !if $(ARCH) == AARCH64
  66. gArmTokenSpaceGuid.PcdVFPEnabled|1
  67. !endif
  68. gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
  69. # Size of the region used by UEFI in permanent memory (Reserved 64MB)
  70. gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
  71. #
  72. # ARM Virtual Architectural Timer
  73. #
  74. gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
  75. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  76. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  77. ## Default Terminal Type
  78. ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
  79. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
  80. #
  81. # Make VariableRuntimeDxe work at emulated non-volatile variable mode.
  82. #
  83. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE
  84. [PcdsPatchableInModule.common]
  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. ArmVirtPkg/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