VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/ArmVirtPkg/ArmVirtXen.dsc@ 102466

Last change on this file since 102466 was 101291, checked in by vboxsync, 17 months ago

EFI/FirmwareNew: Make edk2-stable202308 build on all supported platforms (using gcc at least, msvc not tested yet), bugref:4643

  • Property svn:eol-style set to native
File size: 8.7 KB
Line 
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!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 EmbeddedPkg/Drivers/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
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette