744d127a10336f860c7088b7126512e2472b280b
[mirror_edk2.git] / ArmVirtPkg / ArmVirtQemu.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/ArmVirtQemu-$(ARCH)
27 SUPPORTED_ARCHITECTURES = AARCH64|ARM
28 BUILD_TARGETS = DEBUG|RELEASE|NOOPT
29 SKUID_IDENTIFIER = DEFAULT
30 FLASH_DEFINITION = ArmVirtPkg/ArmVirtQemu.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 DEFINE HTTP_BOOT_ENABLE = FALSE
38
39 !include ArmVirtPkg/ArmVirt.dsc.inc
40
41 [LibraryClasses.common]
42 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
43 ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
44
45 # Virtio Support
46 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
47 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
48 QemuFwCfgLib|ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf
49 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/BaseQemuFwCfgS3LibNull.inf
50
51 ArmPlatformLib|ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf
52
53 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
54 NorFlashPlatformLib|ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf
55
56 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
57 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
58 PlatformBootManagerLib|ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
59 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
60 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
61 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
62 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
63 PciPcdProducerLib|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
64 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
65 PciHostBridgeLib|ArmVirtPkg/Library/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
66
67 !if $(HTTP_BOOT_ENABLE) == TRUE
68 HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
69 !endif
70
71 [LibraryClasses.common.PEIM]
72 ArmVirtMemInfoLib|ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoPeiLib.inf
73
74 [LibraryClasses.common.UEFI_DRIVER]
75 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
76
77 ################################################################################
78 #
79 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
80 #
81 ################################################################################
82
83 [PcdsFeatureFlag.common]
84 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation|TRUE
85 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTranslation|TRUE
86
87 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
88 # It could be set FALSE to save size.
89 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
90 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
91
92 [PcdsFixedAtBuild.common]
93 gArmPlatformTokenSpaceGuid.PcdCoreCount|1
94 !if $(ARCH) == AARCH64
95 gArmTokenSpaceGuid.PcdVFPEnabled|1
96 !endif
97
98 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000
99 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
100 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
101 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
102
103 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
104 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
105
106 ## Trustzone enable (to make the transition from EL3 to EL2 in ArmPlatformPkg/Sec)
107 gArmTokenSpaceGuid.PcdTrustzoneSupport|FALSE
108
109 #
110 # ARM PrimeCell
111 #
112
113 ## PL011 - Serial Terminal
114 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
115
116 ## Default Terminal Type
117 ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
118 !if $(TTY_TERMINAL) == TRUE
119 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
120 !else
121 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|1
122 !endif
123
124 #
125 # ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM
126 #
127 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
128
129 !if $(HTTP_BOOT_ENABLE) == TRUE
130 gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE
131 !endif
132
133 # System Memory Base -- fixed at 0x4000_0000
134 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000
135
136 # initial location of the device tree blob passed by QEMU -- base of DRAM
137 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000
138
139 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
140 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
141
142 #
143 # The maximum physical I/O addressability of the processor, set with
144 # BuildCpuHob().
145 #
146 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
147
148 [PcdsFixedAtBuild.AARCH64]
149 # KVM limits it IPA space to 40 bits (1 TB), so there is no need to
150 # support anything bigger, even if the host hardware does
151 gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|40
152
153 # Clearing BIT0 in this PCD prevents installing a 32-bit SMBIOS entry point,
154 # if the entry point version is >= 3.0. AARCH64 OSes cannot assume the
155 # presence of the 32-bit entry point anyway (because many AARCH64 systems
156 # don't have 32-bit addressable physical RAM), and the additional allocations
157 # below 4 GB needlessly fragment the memory map. So expose the 64-bit entry
158 # point only, for entry point versions >= 3.0.
159 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosEntryPointProvideMethod|0x2
160
161 # ACPI predates the AARCH64 architecture by 5 versions, so
162 # we only target OSes that support ACPI v5.0 or later
163 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20
164
165 [PcdsDynamicDefault.common]
166 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
167
168 ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
169 # enumeration to complete before installing ACPI tables.
170 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
171
172 # System Memory Size -- 1 MB initially, actual size will be fetched from DT
173 gArmTokenSpaceGuid.PcdSystemMemorySize|0x00100000
174
175 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
176 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
177 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
178 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
179
180 #
181 # ARM General Interrupt Controller
182 #
183 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
184 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
185 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
186
187 ## PL031 RealTimeClock
188 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
189
190 # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
191 # PCD and PcdPciDisableBusEnumeration above have not been assigned yet
192 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
193
194 gArmTokenSpaceGuid.PcdPciIoTranslation|0x0
195
196 #
197 # Set video resolution for boot options and for text setup.
198 # PlatformDxe can set the former at runtime.
199 #
200 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
201 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
202 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
203 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
204
205 #
206 # SMBIOS entry point version
207 #
208 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0300
209 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
210 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
211
212 [PcdsDynamicHii]
213 gArmVirtTokenSpaceGuid.PcdForceNoAcpi|L"ForceNoAcpi"|gArmVirtVariableGuid|0x0|FALSE|NV,BS
214
215 ################################################################################
216 #
217 # Components Section - list of all EDK II Modules needed by this Platform
218 #
219 ################################################################################
220 [Components.common]
221 #
222 # PEI Phase modules
223 #
224 ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
225 MdeModulePkg/Core/Pei/PeiMain.inf
226 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
227 <LibraryClasses>
228 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
229 }
230 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
231 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
232 ArmPkg/Drivers/CpuPei/CpuPei.inf
233
234 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
235
236 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
237 <LibraryClasses>
238 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
239 }
240
241 #
242 # DXE
243 #
244 MdeModulePkg/Core/Dxe/DxeMain.inf {
245 <LibraryClasses>
246 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
247 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
248 }
249 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
250 <LibraryClasses>
251 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
252 }
253
254 #
255 # Architectural Protocols
256 #
257 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
258 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
259 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
260 <LibraryClasses>
261 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
262 NULL|EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf
263 # don't use unaligned CopyMem () on the UEFI varstore NOR flash region
264 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.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 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.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 + UDF filesystem
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 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
320
321 #
322 # Bds
323 #
324 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
325 <LibraryClasses>
326 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
327 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
328 }
329 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
330 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
331 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
332 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
333 MdeModulePkg/Logo/LogoDxe.inf
334 MdeModulePkg/Application/UiApp/UiApp.inf {
335 <LibraryClasses>
336 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
337 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
338 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
339 }
340
341 #
342 # Networking stack
343 #
344 MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
345 MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
346 MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
347 MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
348 MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
349 MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
350 MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
351 MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
352 MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
353 MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
354 MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
355 !if $(HTTP_BOOT_ENABLE) == TRUE
356 NetworkPkg/DnsDxe/DnsDxe.inf
357 NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
358 NetworkPkg/HttpDxe/HttpDxe.inf
359 NetworkPkg/HttpBootDxe/HttpBootDxe.inf
360 !endif
361
362 #
363 # SCSI Bus and Disk Driver
364 #
365 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
366 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
367
368 #
369 # SMBIOS Support
370 #
371 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
372 <LibraryClasses>
373 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
374 }
375 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
376
377 #
378 # PCI support
379 #
380 ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf {
381 <LibraryClasses>
382 NULL|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
383 }
384 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
385 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
386 <LibraryClasses>
387 NULL|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
388 }
389 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
390 OvmfPkg/Virtio10Dxe/Virtio10.inf
391
392 #
393 # Video support
394 #
395 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
396 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
397 OvmfPkg/PlatformDxe/Platform.inf
398
399 #
400 # USB Support
401 #
402 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
403 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
404 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
405 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
406 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
407 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
408
409 #
410 # ACPI Support
411 #
412 ArmVirtPkg/PlatformHasAcpiDtDxe/PlatformHasAcpiDtDxe.inf
413 [Components.AARCH64]
414 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
415 OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf {
416 <LibraryClasses>
417 NULL|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
418 }