]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/ArmVirtQemu.dsc
IntelFrameworkModulePkg:Refine the code comments in LegacyBootMaintUiLib
[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, 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
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
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.common]
49 # Virtio Support
50 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
51 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
52 QemuFwCfgLib|ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf
53
54 ArmPlatformLib|ArmVirtPkg/Library/ArmVirtPlatformLib/ArmVirtPlatformLib.inf
55 ArmPlatformSysConfigLib|ArmPlatformPkg/Library/ArmPlatformSysConfigLibNull/ArmPlatformSysConfigLibNull.inf
56
57 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
58 NorFlashPlatformLib|ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf
59
60 !if $(INTEL_BDS) == TRUE
61 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
62 GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
63 PlatformBdsLib|ArmVirtPkg/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf
64 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
65 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
66 !endif
67
68 [LibraryClasses.common.UEFI_DRIVER]
69 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
70
71 [LibraryClasses.AARCH64.SEC]
72 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64LibSec.inf
73
74 [LibraryClasses.ARM.SEC]
75 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibSec.inf
76
77 [BuildOptions]
78 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A15 -I$(WORKSPACE)/ArmVirtPkg/Include
79 GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a15 -I$(WORKSPACE)/ArmVirtPkg/Include
80 *_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmVirtPkg/Include
81
82
83 ################################################################################
84 #
85 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
86 #
87 ################################################################################
88
89 [PcdsFeatureFlag.common]
90 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation|TRUE
91 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTranslation|TRUE
92
93 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
94 # It could be set FALSE to save size.
95 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
96 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
97
98 # Activate KVM workaround for now.
99 gArmVirtTokenSpaceGuid.PcdKludgeMapPciMmioAsCached|TRUE
100
101 [PcdsFixedAtBuild.common]
102 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"QEMU"
103
104 gArmPlatformTokenSpaceGuid.PcdCoreCount|1
105 !if $(ARCH) == AARCH64
106 gArmTokenSpaceGuid.PcdVFPEnabled|1
107 !endif
108
109 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000
110 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
111
112 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
113 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
114
115 #
116 # ARM Pcds
117 #
118 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
119
120 ## Trustzone enable (to make the transition from EL3 to EL2 in ArmPlatformPkg/Sec)
121 gArmTokenSpaceGuid.PcdTrustzoneSupport|FALSE
122
123 #
124 # ARM PrimeCell
125 #
126
127 ## PL011 - Serial Terminal
128 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
129
130 #
131 # ARM OS Loader
132 #
133 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux (EFI stub) on virtio31:hd0:part0"
134 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,003E000A00000000)/HD(1,MBR,0x00000000,0x3F,0x19FC0)/Image"
135 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"root=/dev/vda2 console=ttyAMA0 earlycon uefi_debug"
136
137 #
138 # Settings for ARM BDS -- use the serial console (ConIn & ConOut).
139 #
140 !if $(TTY_TERMINAL) == TRUE
141 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenMsg(7D916D80-5BB1-458C-A48F-E25FDD51EF94)"
142 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenMsg(7D916D80-5BB1-458C-A48F-E25FDD51EF94)"
143 ## Terminal Type - TTYTERM, consistent with ConOut/ConIn Device Path.
144 ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
145 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
146 !else
147 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"
148 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"
149 ## Terminal Type - VT100, consistent with ConOut/ConIn Device Path.
150 ## When Intel BDS is enabled, the above ConOut/ConIn device path is useless,
151 ## but we still use VT100 terminal type when TTY_TERMINAL is not TRUE.
152 ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
153 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|1
154 !endif
155 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
156
157 #
158 # ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM
159 #
160 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
161
162 #
163 # NV Storage PCDs. Use base of 0x04000000 for NOR1
164 #
165 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x04000000
166 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00040000
167 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x04040000
168 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00040000
169 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x04080000
170 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00040000
171
172 # System Memory Base -- fixed at 0x4000_0000
173 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000
174
175 # initial location of the device tree blob passed by QEMU -- base of DRAM
176 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000
177
178 !if $(INTEL_BDS) == TRUE
179 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
180 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
181 !endif
182
183 #
184 # The maximum physical I/O addressability of the processor, set with
185 # BuildCpuHob().
186 #
187 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
188
189 [PcdsDynamicDefault.common]
190 ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
191 # enumeration to complete before installing ACPI tables.
192 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
193
194 # System Memory Size -- 1 MB initially, actual size will be fetched from DT
195 gArmTokenSpaceGuid.PcdSystemMemorySize|0x00100000
196
197 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
198 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
199 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
200 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
201
202 #
203 # ARM General Interrupt Controller
204 #
205 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
206 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
207 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
208 gArmVirtTokenSpaceGuid.PcdArmGicRevision|0x0
209
210 ## PL031 RealTimeClock
211 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
212
213 gArmPlatformTokenSpaceGuid.PcdPciBusMin|0x0
214 gArmPlatformTokenSpaceGuid.PcdPciBusMax|0x0
215 gArmPlatformTokenSpaceGuid.PcdPciIoBase|0x0
216 gArmPlatformTokenSpaceGuid.PcdPciIoSize|0x0
217 gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0
218 gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0
219 gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0
220 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x0
221
222 gArmVirtTokenSpaceGuid.PcdArmPsciMethod|0
223
224 gArmVirtTokenSpaceGuid.PcdFwCfgSelectorAddress|0x0
225 gArmVirtTokenSpaceGuid.PcdFwCfgDataAddress|0x0
226
227 #
228 # Set video resolution for boot options and for text setup.
229 # PlatformDxe can set the former at runtime.
230 #
231 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
232 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
233 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
234 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
235
236 #
237 # SMBIOS entry point version
238 #
239 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0300
240
241 ################################################################################
242 #
243 # Components Section - list of all EDK II Modules needed by this Platform
244 #
245 ################################################################################
246 [Components.common]
247 #
248 # PEI Phase modules
249 #
250 ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf {
251 <LibraryClasses>
252 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf
253 }
254 MdeModulePkg/Core/Pei/PeiMain.inf
255 MdeModulePkg/Universal/PCD/Pei/Pcd.inf
256 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
257 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
258 ArmPkg/Drivers/CpuPei/CpuPei.inf
259
260 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
261
262 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
263 <LibraryClasses>
264 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
265 }
266
267 #
268 # DXE
269 #
270 MdeModulePkg/Core/Dxe/DxeMain.inf {
271 <LibraryClasses>
272 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
273 }
274 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
275
276 #
277 # Architectural Protocols
278 #
279 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
280 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
281 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
282 !if $(SECURE_BOOT_ENABLE) == TRUE
283 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
284 <LibraryClasses>
285 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
286 }
287 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
288 !else
289 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
290 !endif
291 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
292 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
293 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
294 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
295 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
296 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
297
298 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
299 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
300 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
301 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
302 EmbeddedPkg/SerialDxe/SerialDxe.inf
303
304 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
305
306 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
307 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
308 !if $(SECURE_BOOT_ENABLE) == TRUE
309 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashAuthenticatedDxe.inf
310 !else
311 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
312 !endif
313 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
314
315 #
316 # Platform Driver
317 #
318 ArmVirtPkg/VirtFdtDxe/VirtFdtDxe.inf
319 ArmVirtPkg/QemuFwCfgToPcdDxe/QemuFwCfgToPcd.inf
320 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
321 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
322 OvmfPkg/VirtioNetDxe/VirtioNet.inf
323
324 #
325 # FAT filesystem + GPT/MBR partitioning
326 #
327 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
328 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
329 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
330
331 #
332 # Bds
333 #
334 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
335 !if $(INTEL_BDS) == TRUE
336 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
337 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
338 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
339 !else
340 ArmPlatformPkg/Bds/Bds.inf
341 !endif
342
343 #
344 # SCSI Bus and Disk Driver
345 #
346 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
347 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
348
349 #
350 # SMBIOS Support
351 #
352 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
353 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
354
355 #
356 # ACPI Support
357 #
358 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
359 OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf
360
361 #
362 # PCI support
363 #
364 ArmVirtPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
365 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
366 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
367
368 #
369 # Video support
370 #
371 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
372 <LibraryClasses>
373 BltLib|OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
374 }
375 OvmfPkg/PlatformDxe/Platform.inf
376
377 #
378 # USB Support
379 #
380 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
381 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
382 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
383 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
384 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf