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