2 # Copyright (c) 2011-2015, ARM Limited. All rights reserved.
3 # Copyright (c) 2014, Linaro Limited. All rights reserved.
4 # Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
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
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.
16 ################################################################################
18 # Defines Section - statements that will be processed to create a Makefile.
20 ################################################################################
22 PLATFORM_NAME = ArmVirtXen
23 PLATFORM_GUID = d1c43be3-3373-4a06-86fb-d1cb3083a207
24 PLATFORM_VERSION = 0.1
25 DSC_SPECIFICATION = 0x00010005
26 OUTPUT_DIRECTORY = Build/ArmVirtXen-$(ARCH)
27 SUPPORTED_ARCHITECTURES = AARCH64|ARM
28 BUILD_TARGETS = DEBUG|RELEASE
29 SKUID_IDENTIFIER = DEFAULT
30 FLASH_DEFINITION = ArmVirtPkg/ArmVirtXen.fdf
32 !include ArmVirtPkg/ArmVirt.dsc.inc
35 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
36 RealTimeClockLib|ArmVirtPkg/Library/XenRealTimeClockLib/XenRealTimeClockLib.inf
37 XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
39 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
40 ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
43 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
44 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
46 ArmPlatformLib|ArmVirtPkg/Library/ArmXenRelocatablePlatformLib/ArmXenRelocatablePlatformLib.inf
47 ArmPlatformSysConfigLib|ArmPlatformPkg/Library/ArmPlatformSysConfigLibNull/ArmPlatformSysConfigLibNull.inf
49 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
51 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
52 GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
53 PlatformBdsLib|ArmPlatformPkg/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf
54 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
56 [LibraryClasses.common.UEFI_DRIVER]
57 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
60 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A15 -I$(WORKSPACE)/ArmVirtPkg/Include
61 GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a15 -I$(WORKSPACE)/ArmVirtPkg/Include
62 GCC:*_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmVirtPkg/Include
64 [BuildOptions.ARM.EDKII.SEC, BuildOptions.ARM.EDKII.BASE]
65 # Avoid MOVT/MOVW instruction pairs in code that may end up in the PIE
66 # executable we build for the relocatable PrePi. They are not runtime
68 *_CLANG35_*_CC_FLAGS = -mno-movt
70 ################################################################################
72 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
74 ################################################################################
76 [PcdsFixedAtBuild.common]
77 gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
79 gArmPlatformTokenSpaceGuid.PcdCoreCount|1
80 !if $(ARCH) == AARCH64
81 gArmTokenSpaceGuid.PcdVFPEnabled|1
84 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
86 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
87 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
90 # ARM Virtual Architectural Timer
92 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
94 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
95 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
97 [PcdsPatchableInModule.common]
99 # This will be overridden in the code
101 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0
102 gArmTokenSpaceGuid.PcdSystemMemorySize|0x0
103 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x0
105 gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
106 gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
108 [PcdsDynamicDefault.common]
110 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
111 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
112 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
113 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
116 # ARM General Interrupt Controller
118 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
119 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
120 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
122 ## PL031 RealTimeClock
123 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
125 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
127 ################################################################################
129 # Components Section - list of all EDK II Modules needed by this Platform
131 ################################################################################
136 ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {
138 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
139 LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
140 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
141 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
142 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
143 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
144 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
150 MdeModulePkg/Core/Dxe/DxeMain.inf {
152 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
154 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
156 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
160 # Architectural Protocols
162 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
163 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
164 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
165 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
167 MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
169 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
170 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
171 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
172 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
174 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
175 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
176 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
178 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
180 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
181 ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
183 NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
185 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
190 ArmVirtPkg/XenioFdtDxe/XenioFdtDxe.inf
191 ArmVirtPkg/FdtClientDxe/FdtClientDxe.inf
194 # FAT filesystem + GPT/MBR partitioning
196 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
197 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
198 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
199 FatPkg/EnhancedFatDxe/Fat.inf
204 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
205 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
206 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
207 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
209 OvmfPkg/XenBusDxe/XenBusDxe.inf
210 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
215 ArmVirtPkg/XenPlatformHasAcpiDtDxe/XenPlatformHasAcpiDtDxe.inf
216 !if $(ARCH) == AARCH64
217 ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf