]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/ArmVirtQemuKernel.dsc
ArmVirtPkg/ArmVirtQemu: switch to generic PciHostBridgeDxe
[mirror_edk2.git] / ArmVirtPkg / ArmVirtQemuKernel.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 - 2016, Intel Corporation. All rights reserved.
5 #
6 # This program and the accompanying materials
7 # are licensed and made available under the terms and conditions of the BSD License
8 # which accompanies this distribution. The full text of the license may be found at
9 # http://opensource.org/licenses/bsd-license.php
10 #
11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 #
14 #
15
16 ################################################################################
17 #
18 # Defines Section - statements that will be processed to create a Makefile.
19 #
20 ################################################################################
21 [Defines]
22 PLATFORM_NAME = ArmVirtQemu
23 PLATFORM_GUID = 37d7e986-f7e9-45c2-8067-e371421a626c
24 PLATFORM_VERSION = 0.1
25 DSC_SPECIFICATION = 0x00010005
26 OUTPUT_DIRECTORY = Build/ArmVirtQemuKernel-$(ARCH)
27 SUPPORTED_ARCHITECTURES = AARCH64|ARM
28 BUILD_TARGETS = DEBUG|RELEASE
29 SKUID_IDENTIFIER = DEFAULT
30 FLASH_DEFINITION = ArmVirtPkg/ArmVirtQemuKernel.fdf
31
32 #
33 # Defines for default states. These can be changed on the command line.
34 # -D FLAG=VALUE
35 #
36 DEFINE SECURE_BOOT_ENABLE = FALSE
37
38 !include ArmVirtPkg/ArmVirt.dsc.inc
39
40 [LibraryClasses.AARCH64]
41 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf
42 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexAEMv8Lib/ArmCortexAEMv8Lib.inf
43
44 [LibraryClasses.ARM]
45 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
46 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexA15Lib/ArmCortexA15Lib.inf
47
48 [LibraryClasses.ARM.SEC]
49 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibSec.inf
50
51 [LibraryClasses.common]
52 ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
53
54 # Virtio Support
55 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
56 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
57 QemuFwCfgLib|ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf
58
59 ArmPlatformLib|ArmVirtPkg/Library/ArmQemuRelocatablePlatformLib/ArmQemuRelocatablePlatformLib.inf
60 ArmPlatformSysConfigLib|ArmPlatformPkg/Library/ArmPlatformSysConfigLibNull/ArmPlatformSysConfigLibNull.inf
61
62 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
63 NorFlashPlatformLib|ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf
64
65 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
66 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
67 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
68 ImageDecoderLib|MdeModulePkg/Library/ImageDecoderLib/ImageDecoderLib.inf
69 PlatformBootManagerLib|ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
70 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
71 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
72 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
73 PciPcdProducerLib|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
74 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
75 PciHostBridgeLib|ArmVirtPkg/Library/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
76
77 [LibraryClasses.common.UEFI_DRIVER]
78 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
79
80 [BuildOptions]
81 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A15 -I$(WORKSPACE)/ArmVirtPkg/Include
82 GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a15 -I$(WORKSPACE)/ArmVirtPkg/Include
83 *_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmVirtPkg/Include
84
85 [BuildOptions.ARM.EDKII.SEC, BuildOptions.ARM.EDKII.BASE]
86 # Avoid MOVT/MOVW instruction pairs in code that may end up in the PIE
87 # executable we build for the relocatable PrePi. They are not runtime
88 # relocatable in ELF.
89 *_CLANG35_*_CC_FLAGS = -mno-movt
90
91 ################################################################################
92 #
93 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
94 #
95 ################################################################################
96
97 [PcdsFeatureFlag.common]
98 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation|TRUE
99 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTranslation|TRUE
100
101 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
102 # It could be set FALSE to save size.
103 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
104 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
105
106 [PcdsFixedAtBuild.common]
107 gArmPlatformTokenSpaceGuid.PcdCoreCount|1
108 !if $(ARCH) == AARCH64
109 gArmTokenSpaceGuid.PcdVFPEnabled|1
110 !endif
111
112 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000
113 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
114 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
115 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
116
117 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
118 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
119
120 #
121 # ARM Pcds
122 #
123 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
124
125 ## Trustzone enable (to make the transition from EL3 to EL2 in ArmPlatformPkg/Sec)
126 gArmTokenSpaceGuid.PcdTrustzoneSupport|FALSE
127
128 #
129 # ARM PrimeCell
130 #
131
132 ## PL011 - Serial Terminal
133 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
134
135 ## Default Terminal Type
136 ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
137 !if $(TTY_TERMINAL) == TRUE
138 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
139 !else
140 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|1
141 !endif
142
143 #
144 # ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM
145 #
146 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
147
148 [PcdsPatchableInModule.common]
149 #
150 # This will be overridden in the code
151 #
152 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0
153 gArmTokenSpaceGuid.PcdSystemMemorySize|0x0
154
155 #
156 # Define a default initial address for the device tree.
157 # Ignored if x0 != 0 at entry.
158 #
159 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000
160
161 gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
162 gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
163
164 [PcdsFixedAtBuild.AARCH64]
165
166 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
167 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
168 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
169
170 #
171 # The maximum physical I/O addressability of the processor, set with
172 # BuildCpuHob().
173 #
174 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
175
176 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
177
178 # KVM limits it IPA space to 40 bits (1 TB), so there is no need to
179 # support anything bigger, even if the host hardware does
180 gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|40
181
182 [PcdsDynamicDefault.common]
183 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
184
185 ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
186 # enumeration to complete before installing ACPI tables.
187 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
188
189 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
190 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
191 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
192 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
193
194 #
195 # ARM General Interrupt Controller
196 #
197 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
198 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
199 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
200
201 ## PL031 RealTimeClock
202 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
203
204 # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
205 # PCD and PcdPciDisableBusEnumeration above have not been assigned yet
206 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
207
208 gArmTokenSpaceGuid.PcdPciIoTranslation|0x0
209
210 #
211 # Set video resolution for boot options and for text setup.
212 # PlatformDxe can set the former at runtime.
213 #
214 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
215 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
216 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
217 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
218
219 #
220 # SMBIOS entry point version
221 #
222 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0300
223 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
224 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
225
226 ################################################################################
227 #
228 # Components Section - list of all EDK II Modules needed by this Platform
229 #
230 ################################################################################
231 [Components.common]
232 #
233 # PEI Phase modules
234 #
235 ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {
236 <LibraryClasses>
237 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
238 LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
239 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
240 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
241 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
242 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
243 }
244
245 #
246 # DXE
247 #
248 MdeModulePkg/Core/Dxe/DxeMain.inf {
249 <LibraryClasses>
250 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
251 }
252 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
253 <LibraryClasses>
254 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
255 }
256
257 #
258 # Architectural Protocols
259 #
260 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
261 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
262 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
263 <LibraryClasses>
264 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
265 }
266 !if $(SECURE_BOOT_ENABLE) == TRUE
267 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
268 <LibraryClasses>
269 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
270 }
271 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
272 !else
273 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
274 !endif
275 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
276 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
277 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
278 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
279 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf {
280 <LibraryClasses>
281 NULL|ArmVirtPkg/Library/ArmVirtPL031FdtClientLib/ArmVirtPL031FdtClientLib.inf
282 }
283 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
284
285 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
286 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
287 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
288 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
289 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
290
291 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
292
293 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
294 ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
295 <LibraryClasses>
296 NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
297 }
298 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
299 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
300
301 #
302 # Platform Driver
303 #
304 ArmVirtPkg/VirtioFdtDxe/VirtioFdtDxe.inf
305 ArmVirtPkg/FdtClientDxe/FdtClientDxe.inf
306 ArmVirtPkg/HighMemDxe/HighMemDxe.inf
307 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
308 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
309 OvmfPkg/VirtioNetDxe/VirtioNet.inf
310 OvmfPkg/VirtioRngDxe/VirtioRng.inf
311
312 #
313 # FAT filesystem + GPT/MBR partitioning
314 #
315 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
316 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
317 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
318 FatPkg/EnhancedFatDxe/Fat.inf
319
320 #
321 # Bds
322 #
323 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
324 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
325 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
326 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
327 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
328 <LibraryClasses>
329 NULL|MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.inf
330 }
331 MdeModulePkg/Application/UiApp/UiApp.inf {
332 <LibraryClasses>
333 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
334 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
335 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
336 }
337
338 #
339 # SCSI Bus and Disk Driver
340 #
341 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
342 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
343
344 #
345 # SMBIOS Support
346 #
347 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
348 <LibraryClasses>
349 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
350 }
351 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
352
353 #
354 # PCI support
355 #
356 ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf {
357 <LibraryClasses>
358 NULL|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
359 }
360 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
361 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
362 <LibraryClasses>
363 NULL|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
364 }
365 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
366 OvmfPkg/Virtio10Dxe/Virtio10.inf
367
368 #
369 # Video support
370 #
371 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
372 <LibraryClasses>
373 BltLib|OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
374 }
375 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
376 OvmfPkg/PlatformDxe/Platform.inf
377
378 #
379 # USB Support
380 #
381 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
382 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
383 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
384 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
385 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
386
387 [Components.AARCH64]
388 #
389 # ACPI Support
390 #
391 OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf {
392 <LibraryClasses>
393 NULL|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
394 }