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
53 TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.inf
55 [LibraryClasses.common.UEFI_DRIVER]
56 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
60 # We need to avoid jump tables in SEC modules, so that the PE/COFF
61 # self-relocation code itself is guaranteed to be position independent.
63 GCC:*_*_*_CC_FLAGS = -fno-jump-tables
65 ################################################################################
67 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
69 ################################################################################
71 [PcdsFixedAtBuild.common]
72 gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
73 !if $(ARCH) == AARCH64
74 gArmTokenSpaceGuid.PcdVFPEnabled|1
77 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
79 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
80 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
83 # ARM Virtual Architectural Timer
85 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
87 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
88 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
90 ## Default Terminal Type
91 ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
92 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
95 # Make VariableRuntimeDxe work at emulated non-volatile variable mode.
97 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE
99 [PcdsPatchableInModule.common]
100 # we need to provide a resolution for this PCD that supports PcdSet64()
101 # being called from ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.c,
102 # even though that call will be compiled out on this platform as it does
103 # not (and cannot) support the TPM2 driver stack
104 gEfiSecurityPkgTokenSpaceGuid.PcdTpmBaseAddress|0x0
107 # This will be overridden in the code
109 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0
110 gArmTokenSpaceGuid.PcdSystemMemorySize|0x0
111 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x0
113 gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
114 gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
116 [PcdsDynamicDefault.common]
118 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
119 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
120 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
121 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
124 # ARM General Interrupt Controller
126 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
127 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
128 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
130 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
132 ################################################################################
134 # Components Section - list of all EDK II Modules needed by this Platform
136 ################################################################################
141 ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {
143 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
144 LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
145 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
146 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
147 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
148 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
149 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
155 MdeModulePkg/Core/Dxe/DxeMain.inf {
157 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
158 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
160 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
162 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
166 # Architectural Protocols
168 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
169 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
170 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
171 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
173 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
175 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
178 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
179 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
180 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
181 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
183 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
184 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
185 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
187 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
189 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
190 ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
192 NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
194 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
199 ArmVirtPkg/XenioFdtDxe/XenioFdtDxe.inf
200 EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf
203 # FAT filesystem + GPT/MBR partitioning + UDF filesystem
205 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
206 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
207 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
208 FatPkg/EnhancedFatDxe/Fat.inf
209 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
214 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
216 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
217 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
219 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
220 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
221 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
222 MdeModulePkg/Application/UiApp/UiApp.inf {
224 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
225 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
226 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
229 OvmfPkg/XenBusDxe/XenBusDxe.inf
230 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
235 ArmVirtPkg/XenPlatformHasAcpiDtDxe/XenPlatformHasAcpiDtDxe.inf
236 !if $(ARCH) == AARCH64
237 ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf