]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/ArmVirtXen.dsc
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[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 [LibraryClasses]
29 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
30 RealTimeClockLib|OvmfPkg/Library/XenRealTimeClockLib/XenRealTimeClockLib.inf
31 XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
32
33 ArmGenericTimerCounterLib|ArmVirtPkg/Library/XenArmGenericTimerVirtCounterLib/XenArmGenericTimerVirtCounterLib.inf
34 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
35 ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
36
37 # Virtio Support
38 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
39 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
40
41 ArmVirtMemInfoLib|ArmVirtPkg/Library/XenVirtMemInfoLib/XenVirtMemInfoLib.inf
42
43 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
44
45 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
46 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
47 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
48 PlatformBootManagerLib|ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
49 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
50 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
51
52 [LibraryClasses.common.UEFI_DRIVER]
53 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
54
55 [BuildOptions.common.EDKII.SEC, BuildOptions.common.EDKII.BASE]
56 #
57 # CLANG38 with LTO support enabled uses the GNU GOLD linker, which insists
58 # on emitting GOT based symbol references when running in shared mode, unless
59 # we override visibility to 'hidden' in all modules that make up the PrePi
60 # build.
61 #
62 GCC:*_CLANG38_*_CC_FLAGS = -include $(WORKSPACE)/ArmVirtPkg/Include/Platform/Hidden.h
63
64 ################################################################################
65 #
66 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
67 #
68 ################################################################################
69
70 [PcdsFixedAtBuild.common]
71 gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
72 !if $(ARCH) == AARCH64
73 gArmTokenSpaceGuid.PcdVFPEnabled|1
74 !endif
75
76 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
77
78 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
79 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
80
81 #
82 # ARM Virtual Architectural Timer
83 #
84 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
85
86 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
87 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
88
89 ## Default Terminal Type
90 ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
91 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
92
93 #
94 # Make VariableRuntimeDxe work at emulated non-volatile variable mode.
95 #
96 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE
97
98 [PcdsPatchableInModule.common]
99 # we need to provide a resolution for this PCD that supports PcdSet64()
100 # being called from ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.c,
101 # even though that call will be compiled out on this platform as it does
102 # not (and cannot) support the TPM2 driver stack
103 gEfiSecurityPkgTokenSpaceGuid.PcdTpmBaseAddress|0x0
104
105 #
106 # This will be overridden in the code
107 #
108 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0
109 gArmTokenSpaceGuid.PcdSystemMemorySize|0x0
110 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x0
111
112 gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
113 gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
114
115 [PcdsDynamicDefault.common]
116
117 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
118 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
119 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
120 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
121
122 #
123 # ARM General Interrupt Controller
124 #
125 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
126 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
127 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
128
129 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
130
131 ################################################################################
132 #
133 # Components Section - list of all EDK II Modules needed by this Platform
134 #
135 ################################################################################
136 [Components.common]
137 #
138 # PEI Phase modules
139 #
140 ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {
141 <LibraryClasses>
142 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
143 LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
144 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
145 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
146 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
147 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
148 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
149 }
150
151 #
152 # DXE
153 #
154 MdeModulePkg/Core/Dxe/DxeMain.inf {
155 <LibraryClasses>
156 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
157 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
158 }
159 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
160 <LibraryClasses>
161 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
162 }
163
164 #
165 # Architectural Protocols
166 #
167 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
168 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
169 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
170 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
171
172 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
173 <LibraryClasses>
174 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
175 }
176
177 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
178 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
179 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
180 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
181
182 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
183 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
184 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
185
186 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
187
188 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
189 ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
190 <LibraryClasses>
191 NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
192 }
193 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
194
195 #
196 # Platform Driver
197 #
198 ArmVirtPkg/XenioFdtDxe/XenioFdtDxe.inf
199 ArmVirtPkg/FdtClientDxe/FdtClientDxe.inf
200
201 #
202 # FAT filesystem + GPT/MBR partitioning + UDF filesystem
203 #
204 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
205 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
206 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
207 FatPkg/EnhancedFatDxe/Fat.inf
208 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
209
210 #
211 # Bds
212 #
213 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
214 <LibraryClasses>
215 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
216 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
217 }
218 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
219 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
220 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
221 MdeModulePkg/Application/UiApp/UiApp.inf {
222 <LibraryClasses>
223 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
224 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
225 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
226 }
227
228 OvmfPkg/XenBusDxe/XenBusDxe.inf
229 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
230
231 #
232 # ACPI support
233 #
234 ArmVirtPkg/XenPlatformHasAcpiDtDxe/XenPlatformHasAcpiDtDxe.inf
235 !if $(ARCH) == AARCH64
236 ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf
237 !endif