blob: 81b836978b6a2d24f36853b367ac32bc0324571a [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
36 XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLibArm.inf
37
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
74
75################################################################################
76#
77# Pcd Section - list of all EDK II PCD Entries defined by this Platform
78#
79################################################################################
80
81[PcdsFixedAtBuild.common]
82 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
83
84 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"XEN-UEFI"
85 gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
86
87 gArmPlatformTokenSpaceGuid.PcdCoreCount|1
88!if $(ARCH) == AARCH64
89 gArmTokenSpaceGuid.PcdVFPEnabled|1
90!endif
91
92 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
93
94 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
95 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
96
97 #
98 # ARM Virtual Architectural Timer
99 #
100 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
101
102 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
103 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
104
105[PcdsPatchableInModule.common]
106 #
107 # This will be overridden in the code
108 #
109 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0
110 gArmTokenSpaceGuid.PcdSystemMemorySize|0x0
111 gArmVirtualizationTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x0
112
113 gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
114 gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
115
116[PcdsDynamicDefault.common]
117 ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
118 # enumeration to complete before installing ACPI tables.
119 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
120
121 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
122 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
123 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
124 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
125
126 #
127 # ARM General Interrupt Controller
128 #
129 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
130 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
131 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
132
133 ## PL031 RealTimeClock
134 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
135
136 gArmPlatformTokenSpaceGuid.PcdPciBusMin|0x0
137 gArmPlatformTokenSpaceGuid.PcdPciBusMax|0x0
138 gArmPlatformTokenSpaceGuid.PcdPciIoBase|0x0
139 gArmPlatformTokenSpaceGuid.PcdPciIoSize|0x0
140 gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0
141 gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0
142 gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0
143 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x0
144
145 gArmVirtualizationTokenSpaceGuid.PcdFwCfgSelectorAddress|0x0
146 gArmVirtualizationTokenSpaceGuid.PcdFwCfgDataAddress|0x0
147
148 gArmVirtualizationTokenSpaceGuid.PcdArmPsciMethod|0
149
150 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
151
152################################################################################
153#
154# Components Section - list of all EDK II Modules needed by this Platform
155#
156################################################################################
157[Components.common]
158 #
159 # PEI Phase modules
160 #
161 ArmPlatformPkg/ArmVirtualizationPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {
162 <LibraryClasses>
163 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
164 LzmaDecompressLib|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
165 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
166 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
167 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
168 MemoryInitPeiLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmVirtualizationMemoryInitPeiLib/ArmVirtualizationMemoryInitPeiLib.inf
169 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64LibPrePi.inf
170 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
171 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf
172 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
173 }
174
175 #
176 # DXE
177 #
178 MdeModulePkg/Core/Dxe/DxeMain.inf {
179 <LibraryClasses>
180 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
181 }
182 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
183
184 #
185 # Architectural Protocols
186 #
187 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
188 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
189 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
190 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
191
192 MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
193
194 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
195 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
196 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
197 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
198
199 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
200 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
201 EmbeddedPkg/SerialDxe/SerialDxe.inf
202
203 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
204
205 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
206 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
207 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
208
209 #
210 # Platform Driver
211 #
212 ArmPlatformPkg/ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.inf
213
214 #
215 # FAT filesystem + GPT/MBR partitioning
216 #
217 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
218 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
219 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
220
221 #
222 # Bds
223 #
224 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
225 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
226 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
227 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
228
229 OvmfPkg/XenBusDxe/XenBusDxe.inf
230 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf