blob: 20233e606fcefa99a407b3263620153c7a914572 [file] [log] [blame]
Ard Biesheuvel22455082015-02-28 20:34:36 +00001#
2# Copyright (c) 2011-2013, ARM Limited. All rights reserved.
3# Copyright (c) 2014, Linaro Limited. All rights reserved.
4#
5# This program and the accompanying materials
6# are licensed and made available under the terms and conditions of the BSD License
7# which accompanies this distribution. The full text of the license may be found at
8# http://opensource.org/licenses/bsd-license.php
9#
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12#
13#
14
15################################################################################
16#
17# Defines Section - statements that will be processed to create a Makefile.
18#
19################################################################################
20[Defines]
21 PLATFORM_NAME = ArmVirtualizationXen
22 PLATFORM_GUID = d1c43be3-3373-4a06-86fb-d1cb3083a207
23 PLATFORM_VERSION = 0.1
24 DSC_SPECIFICATION = 0x00010005
25 OUTPUT_DIRECTORY = Build/ArmVirtualizationXen-$(ARCH)
26 SUPPORTED_ARCHITECTURES = AARCH64
27 BUILD_TARGETS = DEBUG|RELEASE
28 SKUID_IDENTIFIER = DEFAULT
29 FLASH_DEFINITION = ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationXen.fdf
30
31!include ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualization.dsc.inc
32
33[LibraryClasses]
34 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
35 RealTimeClockLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/XenRealTimeClockLib/XenRealTimeClockLib.inf
Laszlo Ersekdf040c02015-03-03 08:13:09 +000036 XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
Ard Biesheuvel22455082015-02-28 20:34:36 +000037
38[LibraryClasses.AARCH64]
39 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf
40 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexAEMv8Lib/ArmCortexAEMv8Lib.inf
41
42[LibraryClasses.ARM]
43 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
44 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexA15Lib/ArmCortexA15Lib.inf
45
46[LibraryClasses.common]
47 # Virtio Support
48 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
49 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
50
51 ArmPlatformLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmXenRelocatablePlatformLib/ArmXenRelocatablePlatformLib.inf
52 ArmPlatformSysConfigLib|ArmPlatformPkg/Library/ArmPlatformSysConfigLibNull/ArmPlatformSysConfigLibNull.inf
53
54 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
55
56 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
57 GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
58 PlatformBdsLib|ArmPlatformPkg/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf
59 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
60
61[LibraryClasses.common.UEFI_DRIVER]
62 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
63
64[LibraryClasses.AARCH64.SEC]
65 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64LibSec.inf
66
67[LibraryClasses.ARM.SEC]
68 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibSec.inf
69
70[BuildOptions]
71 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVirtualizationPkg/Include
72 GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVirtualizationPkg/Include
73 GCC:*_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmPlatformPkg/ArmVirtualizationPkg/Include
Olivier Martind1c561f2015-04-01 11:18:56 +000074
Ard Biesheuvel22455082015-02-28 20:34:36 +000075################################################################################
76#
77# Pcd Section - list of all EDK II PCD Entries defined by this Platform
78#
79################################################################################
80
81[PcdsFixedAtBuild.common]
Ard Biesheuvel22455082015-02-28 20:34:36 +000082 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"XEN-UEFI"
83 gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
84
85 gArmPlatformTokenSpaceGuid.PcdCoreCount|1
86!if $(ARCH) == AARCH64
87 gArmTokenSpaceGuid.PcdVFPEnabled|1
88!endif
89
90 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
91
92 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
93 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
94
95 #
96 # ARM Virtual Architectural Timer
97 #
98 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
99
100 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
101 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
102
103[PcdsPatchableInModule.common]
104 #
105 # This will be overridden in the code
106 #
107 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0
108 gArmTokenSpaceGuid.PcdSystemMemorySize|0x0
109 gArmVirtualizationTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x0
110
111 gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
112 gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
113
114[PcdsDynamicDefault.common]
115 ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
116 # enumeration to complete before installing ACPI tables.
117 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
118
119 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
120 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
121 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
122 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
123
124 #
125 # ARM General Interrupt Controller
126 #
127 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
128 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
129 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
130
131 ## PL031 RealTimeClock
132 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
133
134 gArmPlatformTokenSpaceGuid.PcdPciBusMin|0x0
135 gArmPlatformTokenSpaceGuid.PcdPciBusMax|0x0
136 gArmPlatformTokenSpaceGuid.PcdPciIoBase|0x0
137 gArmPlatformTokenSpaceGuid.PcdPciIoSize|0x0
138 gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0
139 gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0
140 gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0
141 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x0
142
143 gArmVirtualizationTokenSpaceGuid.PcdFwCfgSelectorAddress|0x0
144 gArmVirtualizationTokenSpaceGuid.PcdFwCfgDataAddress|0x0
145
146 gArmVirtualizationTokenSpaceGuid.PcdArmPsciMethod|0
147
Ruiyu Ni66b43832015-05-06 04:44:43 +0000148 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
Ard Biesheuvel22455082015-02-28 20:34:36 +0000149
150################################################################################
151#
152# Components Section - list of all EDK II Modules needed by this Platform
153#
154################################################################################
155[Components.common]
156 #
157 # PEI Phase modules
158 #
159 ArmPlatformPkg/ArmVirtualizationPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {
160 <LibraryClasses>
161 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
Olivier Martin9435a572015-04-08 19:58:50 +0000162 LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
Ard Biesheuvel22455082015-02-28 20:34:36 +0000163 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
164 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
165 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
Ard Biesheuvel22455082015-02-28 20:34:36 +0000166 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64LibPrePi.inf
167 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
168 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf
169 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
170 }
171
172 #
173 # DXE
174 #
175 MdeModulePkg/Core/Dxe/DxeMain.inf {
176 <LibraryClasses>
177 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
178 }
179 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
180
181 #
182 # Architectural Protocols
183 #
184 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
185 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
186 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
187 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
188
189 MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
190
191 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
192 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
193 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
194 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
195
196 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
197 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
198 EmbeddedPkg/SerialDxe/SerialDxe.inf
199
200 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
201
202 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
203 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
204 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
205
206 #
207 # Platform Driver
208 #
209 ArmPlatformPkg/ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.inf
210
211 #
212 # FAT filesystem + GPT/MBR partitioning
213 #
214 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
215 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
216 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
217
218 #
219 # Bds
220 #
221 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
222 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
223 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
224 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
225
226 OvmfPkg/XenBusDxe/XenBusDxe.inf
227 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf