]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/ArmVirtXen.dsc
Maintainers.txt: Update email address
[mirror_edk2.git] / ArmVirtPkg / ArmVirtXen.dsc
1 #
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>
5 #
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
7 #
8 #
9
10 ################################################################################
11 #
12 # Defines Section - statements that will be processed to create a Makefile.
13 #
14 ################################################################################
15 [Defines]
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
25
26 !include ArmVirtPkg/ArmVirt.dsc.inc
27
28 !include MdePkg/MdeLibs.dsc.inc
29
30 [LibraryClasses]
31 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
32 RealTimeClockLib|OvmfPkg/Library/XenRealTimeClockLib/XenRealTimeClockLib.inf
33 XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
34
35 ArmGenericTimerCounterLib|ArmVirtPkg/Library/XenArmGenericTimerVirtCounterLib/XenArmGenericTimerVirtCounterLib.inf
36 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
37 ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
38
39 # Virtio Support
40 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
41 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
42
43 ArmVirtMemInfoLib|ArmVirtPkg/Library/XenVirtMemInfoLib/XenVirtMemInfoLib.inf
44
45 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
46
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
54
55 [LibraryClasses.common.UEFI_DRIVER]
56 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
57
58 [BuildOptions]
59 #
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.
62 #
63 GCC:*_*_*_CC_FLAGS = -fno-jump-tables
64
65 ################################################################################
66 #
67 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
68 #
69 ################################################################################
70
71 [PcdsFixedAtBuild.common]
72 gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
73 !if $(ARCH) == AARCH64
74 gArmTokenSpaceGuid.PcdVFPEnabled|1
75 !endif
76
77 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
78
79 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
80 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
81
82 #
83 # ARM Virtual Architectural Timer
84 #
85 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
86
87 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
88 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
89
90 ## Default Terminal Type
91 ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
92 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
93
94 #
95 # Make VariableRuntimeDxe work at emulated non-volatile variable mode.
96 #
97 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE
98
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
105
106 #
107 # This will be overridden in the code
108 #
109 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0
110 gArmTokenSpaceGuid.PcdSystemMemorySize|0x0
111 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x0
112
113 gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
114 gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
115
116 [PcdsDynamicDefault.common]
117
118 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
119 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
120 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
121 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
122
123 #
124 # ARM General Interrupt Controller
125 #
126 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
127 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
128 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
129
130 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
131
132 ################################################################################
133 #
134 # Components Section - list of all EDK II Modules needed by this Platform
135 #
136 ################################################################################
137 [Components.common]
138 #
139 # PEI Phase modules
140 #
141 ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {
142 <LibraryClasses>
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
150 }
151
152 #
153 # DXE
154 #
155 MdeModulePkg/Core/Dxe/DxeMain.inf {
156 <LibraryClasses>
157 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
158 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
159 }
160 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
161 <LibraryClasses>
162 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
163 }
164
165 #
166 # Architectural Protocols
167 #
168 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
169 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
170 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
171 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
172
173 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
174 <LibraryClasses>
175 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
176 }
177
178 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
179 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
180 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
181 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
182
183 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
184 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
185 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
186
187 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
188
189 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
190 ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
191 <LibraryClasses>
192 NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
193 }
194 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
195
196 #
197 # Platform Driver
198 #
199 ArmVirtPkg/XenioFdtDxe/XenioFdtDxe.inf
200 EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf
201
202 #
203 # FAT filesystem + GPT/MBR partitioning + UDF filesystem
204 #
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
210
211 #
212 # Bds
213 #
214 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
215 <LibraryClasses>
216 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
217 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
218 }
219 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
220 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
221 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
222 MdeModulePkg/Application/UiApp/UiApp.inf {
223 <LibraryClasses>
224 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
225 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
226 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
227 }
228
229 OvmfPkg/XenBusDxe/XenBusDxe.inf
230 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
231
232 #
233 # ACPI support
234 #
235 ArmVirtPkg/XenPlatformHasAcpiDtDxe/XenPlatformHasAcpiDtDxe.inf
236 !if $(ARCH) == AARCH64
237 ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf
238 !endif