]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - ArmVirtPkg/ArmVirtQemu.dsc
OvmfPkg: include Virtio10Dxe
[mirror_edk2.git] / ArmVirtPkg / ArmVirtQemu.dsc
... / ...
CommitLineData
1#\r
2# Copyright (c) 2011-2015, ARM Limited. All rights reserved.\r
3# Copyright (c) 2014, Linaro Limited. All rights reserved.\r
4# Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.\r
5#\r
6# This program and the accompanying materials\r
7# are licensed and made available under the terms and conditions of the BSD License\r
8# which accompanies this distribution. The full text of the license may be found at\r
9# http://opensource.org/licenses/bsd-license.php\r
10#\r
11# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13#\r
14#\r
15\r
16################################################################################\r
17#\r
18# Defines Section - statements that will be processed to create a Makefile.\r
19#\r
20################################################################################\r
21[Defines]\r
22 PLATFORM_NAME = ArmVirtQemu\r
23 PLATFORM_GUID = 37d7e986-f7e9-45c2-8067-e371421a626c\r
24 PLATFORM_VERSION = 0.1\r
25 DSC_SPECIFICATION = 0x00010005\r
26 OUTPUT_DIRECTORY = Build/ArmVirtQemu-$(ARCH)\r
27 SUPPORTED_ARCHITECTURES = AARCH64|ARM\r
28 BUILD_TARGETS = DEBUG|RELEASE\r
29 SKUID_IDENTIFIER = DEFAULT\r
30 FLASH_DEFINITION = ArmVirtPkg/ArmVirtQemu.fdf\r
31\r
32 #\r
33 # Defines for default states. These can be changed on the command line.\r
34 # -D FLAG=VALUE\r
35 #\r
36 DEFINE SECURE_BOOT_ENABLE = FALSE\r
37 DEFINE PURE_ACPI_BOOT_ENABLE = FALSE\r
38\r
39!include ArmVirtPkg/ArmVirt.dsc.inc\r
40\r
41[LibraryClasses.AARCH64]\r
42 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf\r
43 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexAEMv8Lib/ArmCortexAEMv8Lib.inf\r
44\r
45[LibraryClasses.ARM]\r
46 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf\r
47 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexA15Lib/ArmCortexA15Lib.inf\r
48\r
49[LibraryClasses.common]\r
50 # Virtio Support\r
51 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf\r
52 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf\r
53 QemuFwCfgLib|ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf\r
54\r
55 ArmPlatformLib|ArmVirtPkg/Library/ArmVirtPlatformLib/ArmVirtPlatformLib.inf\r
56 ArmPlatformSysConfigLib|ArmPlatformPkg/Library/ArmPlatformSysConfigLibNull/ArmPlatformSysConfigLibNull.inf\r
57\r
58 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf\r
59 NorFlashPlatformLib|ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf\r
60\r
61 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf\r
62 GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf\r
63 PlatformBdsLib|ArmVirtPkg/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf\r
64 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf\r
65 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf\r
66!if $(SECURE_BOOT_ENABLE) == TRUE\r
67 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf\r
68!endif\r
69\r
70[LibraryClasses.common.UEFI_DRIVER]\r
71 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
72\r
73[LibraryClasses.AARCH64.SEC]\r
74 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64LibSec.inf\r
75\r
76[LibraryClasses.ARM.SEC]\r
77 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibSec.inf\r
78\r
79[BuildOptions]\r
80 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A15 -I$(WORKSPACE)/ArmVirtPkg/Include\r
81 GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a15 -I$(WORKSPACE)/ArmVirtPkg/Include\r
82 *_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmVirtPkg/Include\r
83\r
84\r
85################################################################################\r
86#\r
87# Pcd Section - list of all EDK II PCD Entries defined by this Platform\r
88#\r
89################################################################################\r
90\r
91[PcdsFeatureFlag.common]\r
92 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation|TRUE\r
93 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTranslation|TRUE\r
94\r
95 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.\r
96 # It could be set FALSE to save size.\r
97 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r
98 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE\r
99\r
100 # Activate KVM workaround for now.\r
101 gArmVirtTokenSpaceGuid.PcdKludgeMapPciMmioAsCached|TRUE\r
102\r
103!if $(PURE_ACPI_BOOT_ENABLE) == TRUE\r
104 gArmVirtTokenSpaceGuid.PcdPureAcpiBoot|TRUE\r
105!endif\r
106\r
107[PcdsFixedAtBuild.common]\r
108 gArmPlatformTokenSpaceGuid.PcdCoreCount|1\r
109!if $(ARCH) == AARCH64\r
110 gArmTokenSpaceGuid.PcdVFPEnabled|1\r
111!endif\r
112\r
113 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000\r
114 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000\r
115\r
116 # Size of the region used by UEFI in permanent memory (Reserved 64MB)\r
117 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000\r
118\r
119 #\r
120 # ARM Pcds\r
121 #\r
122 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000\r
123\r
124 ## Trustzone enable (to make the transition from EL3 to EL2 in ArmPlatformPkg/Sec)\r
125 gArmTokenSpaceGuid.PcdTrustzoneSupport|FALSE\r
126\r
127 #\r
128 # ARM PrimeCell\r
129 #\r
130\r
131 ## PL011 - Serial Terminal\r
132 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400\r
133\r
134 ## Default Terminal Type\r
135 ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM\r
136!if $(TTY_TERMINAL) == TRUE\r
137 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4\r
138!else\r
139 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|1\r
140!endif\r
141 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3\r
142\r
143 #\r
144 # ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM\r
145 #\r
146 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0\r
147\r
148 #\r
149 # NV Storage PCDs. Use base of 0x04000000 for NOR1\r
150 #\r
151 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x04000000\r
152 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00040000\r
153 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x04040000\r
154 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00040000\r
155 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x04080000\r
156 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00040000\r
157\r
158 # System Memory Base -- fixed at 0x4000_0000\r
159 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000\r
160\r
161 # initial location of the device tree blob passed by QEMU -- base of DRAM\r
162 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000\r
163\r
164 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE\r
165 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }\r
166\r
167 #\r
168 # The maximum physical I/O addressability of the processor, set with\r
169 # BuildCpuHob().\r
170 #\r
171 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16\r
172\r
173[PcdsFixedAtBuild.AARCH64]\r
174 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE\r
175\r
176 # KVM limits it IPA space to 40 bits (1 TB), so there is no need to\r
177 # support anything bigger, even if the host hardware does\r
178 gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|40\r
179\r
180 # Clearing BIT0 in this PCD prevents installing a 32-bit SMBIOS entry point,\r
181 # if the entry point version is >= 3.0. AARCH64 OSes cannot assume the\r
182 # presence of the 32-bit entry point anyway (because many AARCH64 systems\r
183 # don't have 32-bit addressable physical RAM), and the additional allocations\r
184 # below 4 GB needlessly fragment the memory map. So expose the 64-bit entry\r
185 # point only, for entry point versions >= 3.0.\r
186 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosEntryPointProvideMethod|0x2\r
187\r
188 # ACPI predates the AARCH64 architecture by 5 versions, so\r
189 # we only target OSes that support ACPI v5.0 or later\r
190 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20\r
191\r
192[PcdsDynamicDefault.common]\r
193 ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI\r
194 # enumeration to complete before installing ACPI tables.\r
195 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE\r
196\r
197 # System Memory Size -- 1 MB initially, actual size will be fetched from DT\r
198 gArmTokenSpaceGuid.PcdSystemMemorySize|0x00100000\r
199\r
200 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0\r
201 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0\r
202 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0\r
203 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0\r
204\r
205 #\r
206 # ARM General Interrupt Controller\r
207 #\r
208 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0\r
209 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0\r
210 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0\r
211 gArmVirtTokenSpaceGuid.PcdArmGicRevision|0x0\r
212\r
213 ## PL031 RealTimeClock\r
214 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0\r
215\r
216 gArmPlatformTokenSpaceGuid.PcdPciBusMin|0x0\r
217 gArmPlatformTokenSpaceGuid.PcdPciBusMax|0x0\r
218 gArmPlatformTokenSpaceGuid.PcdPciIoBase|0x0\r
219 gArmPlatformTokenSpaceGuid.PcdPciIoSize|0x0\r
220 gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0\r
221 gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0\r
222 gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0\r
223 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x0\r
224\r
225 gArmVirtTokenSpaceGuid.PcdArmPsciMethod|0\r
226\r
227 gArmVirtTokenSpaceGuid.PcdFwCfgSelectorAddress|0x0\r
228 gArmVirtTokenSpaceGuid.PcdFwCfgDataAddress|0x0\r
229 gArmVirtTokenSpaceGuid.PcdFwCfgDmaAddress|0x0\r
230\r
231 #\r
232 # Set video resolution for boot options and for text setup.\r
233 # PlatformDxe can set the former at runtime.\r
234 #\r
235 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800\r
236 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600\r
237 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640\r
238 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480\r
239\r
240 #\r
241 # SMBIOS entry point version\r
242 #\r
243 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0300\r
244 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0\r
245 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE\r
246\r
247################################################################################\r
248#\r
249# Components Section - list of all EDK II Modules needed by this Platform\r
250#\r
251################################################################################\r
252[Components.common]\r
253 #\r
254 # PEI Phase modules\r
255 #\r
256 ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf\r
257 MdeModulePkg/Core/Pei/PeiMain.inf\r
258 MdeModulePkg/Universal/PCD/Pei/Pcd.inf\r
259 ArmPlatformPkg/PlatformPei/PlatformPeim.inf\r
260 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf\r
261 ArmPkg/Drivers/CpuPei/CpuPei.inf\r
262\r
263 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r
264\r
265 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {\r
266 <LibraryClasses>\r
267 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
268 }\r
269\r
270 #\r
271 # DXE\r
272 #\r
273 MdeModulePkg/Core/Dxe/DxeMain.inf {\r
274 <LibraryClasses>\r
275 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf\r
276 }\r
277 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf\r
278\r
279 #\r
280 # Architectural Protocols\r
281 #\r
282 ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r
283 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
284 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {\r
285 <LibraryClasses>\r
286 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf\r
287 }\r
288!if $(SECURE_BOOT_ENABLE) == TRUE\r
289 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {\r
290 <LibraryClasses>\r
291 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf\r
292 }\r
293 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf\r
294!else\r
295 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
296!endif\r
297 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
298 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r
299 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
300 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf\r
301 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r
302 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r
303\r
304 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
305 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
306 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r
307 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
308 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf\r
309\r
310 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
311\r
312 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf\r
313 ArmPkg/Drivers/TimerDxe/TimerDxe.inf\r
314!if $(SECURE_BOOT_ENABLE) == TRUE\r
315 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashAuthenticatedDxe.inf\r
316!else\r
317 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf\r
318!endif\r
319 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
320\r
321 #\r
322 # Platform Driver\r
323 #\r
324 ArmVirtPkg/VirtFdtDxe/VirtFdtDxe.inf\r
325 ArmVirtPkg/HighMemDxe/HighMemDxe.inf\r
326 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r
327 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf\r
328 OvmfPkg/VirtioNetDxe/VirtioNet.inf\r
329 OvmfPkg/VirtioRngDxe/VirtioRng.inf\r
330\r
331 #\r
332 # FAT filesystem + GPT/MBR partitioning\r
333 #\r
334 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
335 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
336 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
337\r
338 #\r
339 # Bds\r
340 #\r
341 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
342 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
343 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
344 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf\r
345\r
346 #\r
347 # SCSI Bus and Disk Driver\r
348 #\r
349 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
350 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r
351\r
352 #\r
353 # SMBIOS Support\r
354 #\r
355 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {\r
356 <LibraryClasses>\r
357 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf\r
358 }\r
359 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf\r
360\r
361 #\r
362 # PCI support\r
363 #\r
364 ArmVirtPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf\r
365 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf\r
366 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf\r
367\r
368 #\r
369 # Video support\r
370 #\r
371 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {\r
372 <LibraryClasses>\r
373 BltLib|OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf\r
374 }\r
375 OvmfPkg/PlatformDxe/Platform.inf\r
376\r
377 #\r
378 # USB Support\r
379 #\r
380 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf\r
381 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf\r
382 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf\r
383 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf\r
384 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf\r
385\r
386[Components.AARCH64]\r
387 #\r
388 # ACPI Support\r
389 #\r
390 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r
391 OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf\r
392\r
393[Components.ARM]\r
394 #\r
395 # The ARM/Linux kernel has no built in EFI boot stub (yet), so we still need\r
396 # an intermediate OS loader. Add the LinuxLoader UEFI application so we can\r
397 # invoke it from the shell.\r
398 #\r
399 MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.inf\r
400 ArmPkg/Application/LinuxLoader/LinuxLoader.inf {\r
401 <LibraryClasses>\r
402 BdsLib|ArmPkg/Library/BdsLib/BdsLib.inf\r
403 }\r