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