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>
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
10 ################################################################################
12 # Defines Section - statements that will be processed to create a Makefile.
14 ################################################################################
16 PLATFORM_NAME = ArmVirtXen
17 PLATFORM_GUID = d1c43be3-3373-4a06-86fb-d1cb3083a207
18 PLATFORM_VERSION = 0.1
19 DSC_SPECIFICATION = 0x00010005
20 OUTPUT_DIRECTORY = Build/ArmVirtXen-$(ARCH)
21 SUPPORTED_ARCHITECTURES = AARCH64|ARM
22 BUILD_TARGETS = DEBUG|RELEASE|NOOPT
23 SKUID_IDENTIFIER = DEFAULT
24 FLASH_DEFINITION = ArmVirtPkg/ArmVirtXen.fdf
26 !include ArmVirtPkg/ArmVirt.dsc.inc
28 !include MdePkg/MdeLibs.dsc.inc
31 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
32 RealTimeClockLib|OvmfPkg/Library/XenRealTimeClockLib/XenRealTimeClockLib.inf
33 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
40 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
41 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
43 ArmVirtMemInfoLib|ArmVirtPkg/Library/XenVirtMemInfoLib/XenVirtMemInfoLib.inf
45 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
47 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
48 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
49 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
50 PlatformBootManagerLib|ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
51 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
52 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
54 [LibraryClasses.common.UEFI_DRIVER]
55 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
59 # We need to avoid jump tables in SEC modules, so that the PE/COFF
60 # self-relocation code itself is guaranteed to be position independent.
62 GCC:*_*_*_CC_FLAGS = -fno-jump-tables
64 ################################################################################
66 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
68 ################################################################################
70 [PcdsFixedAtBuild.common]
71 gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
72 !if $(ARCH) == AARCH64
73 gArmTokenSpaceGuid.PcdVFPEnabled|1
76 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
78 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
79 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
82 # ARM Virtual Architectural Timer
84 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
86 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
87 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
89 ## Default Terminal Type
90 ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
91 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
94 # Make VariableRuntimeDxe work at emulated non-volatile variable mode.
96 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE
98 [PcdsPatchableInModule.common]
99 # we need to provide a resolution for this PCD that supports PcdSet64()
100 # being called from ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.c,
101 # even though that call will be compiled out on this platform as it does
102 # not (and cannot) support the TPM2 driver stack
103 gEfiSecurityPkgTokenSpaceGuid.PcdTpmBaseAddress|0x0
106 # This will be overridden in the code
108 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0
109 gArmTokenSpaceGuid.PcdSystemMemorySize|0x0
110 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x0
112 gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
113 gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
115 [PcdsDynamicDefault.common]
117 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
118 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
119 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
120 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
123 # ARM General Interrupt Controller
125 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
126 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
127 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
129 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
131 ################################################################################
133 # Components Section - list of all EDK II Modules needed by this Platform
135 ################################################################################
140 ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {
142 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
143 LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
144 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
145 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
146 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
147 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
148 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
154 MdeModulePkg/Core/Dxe/DxeMain.inf {
156 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
157 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
159 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
161 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
165 # Architectural Protocols
167 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
168 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
169 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
170 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
172 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
174 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
177 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
178 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
179 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
180 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
182 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
183 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
184 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
186 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
188 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
189 ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
191 NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
193 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
198 ArmVirtPkg/XenioFdtDxe/XenioFdtDxe.inf
199 ArmVirtPkg/FdtClientDxe/FdtClientDxe.inf
202 # FAT filesystem + GPT/MBR partitioning + UDF filesystem
204 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
205 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
206 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
207 FatPkg/EnhancedFatDxe/Fat.inf
208 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
213 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
215 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
216 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
218 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
219 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
220 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
221 MdeModulePkg/Application/UiApp/UiApp.inf {
223 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
224 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
225 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
228 OvmfPkg/XenBusDxe/XenBusDxe.inf
229 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
234 ArmVirtPkg/XenPlatformHasAcpiDtDxe/XenPlatformHasAcpiDtDxe.inf
235 !if $(ARCH) == AARCH64
236 ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf