]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/ArmVirtQemu.dsc
ArmVirtPkg/ArmVirtQemu: support SMBIOS
[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
209 ## PL031 RealTimeClock
210 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
211
212 gArmPlatformTokenSpaceGuid.PcdPciBusMin|0x0
213 gArmPlatformTokenSpaceGuid.PcdPciBusMax|0x0
214 gArmPlatformTokenSpaceGuid.PcdPciIoBase|0x0
215 gArmPlatformTokenSpaceGuid.PcdPciIoSize|0x0
216 gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0
217 gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0
218 gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0
219 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x0
220
221 gArmVirtTokenSpaceGuid.PcdArmPsciMethod|0
222
223 gArmVirtTokenSpaceGuid.PcdFwCfgSelectorAddress|0x0
224 gArmVirtTokenSpaceGuid.PcdFwCfgDataAddress|0x0
225
226 #
227 # Set video resolution for boot options and for text setup.
228 # PlatformDxe can set the former at runtime.
229 #
230 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
231 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
232 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
233 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
234
235 #
236 # SMBIOS entry point version
237 #
238 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0300
239
240 ################################################################################
241 #
242 # Components Section - list of all EDK II Modules needed by this Platform
243 #
244 ################################################################################
245 [Components.common]
246 #
247 # PEI Phase modules
248 #
249 ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf {
250 <LibraryClasses>
251 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf
252 }
253 MdeModulePkg/Core/Pei/PeiMain.inf
254 MdeModulePkg/Universal/PCD/Pei/Pcd.inf
255 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
256 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
257 ArmPkg/Drivers/CpuPei/CpuPei.inf
258
259 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
260
261 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
262 <LibraryClasses>
263 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
264 }
265
266 #
267 # DXE
268 #
269 MdeModulePkg/Core/Dxe/DxeMain.inf {
270 <LibraryClasses>
271 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
272 }
273 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
274
275 #
276 # Architectural Protocols
277 #
278 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
279 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
280 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
281 !if $(SECURE_BOOT_ENABLE) == TRUE
282 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
283 <LibraryClasses>
284 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
285 }
286 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
287 !else
288 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
289 !endif
290 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
291 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
292 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
293 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
294 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
295 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
296
297 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
298 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
299 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
300 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
301 EmbeddedPkg/SerialDxe/SerialDxe.inf
302
303 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
304
305 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
306 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
307 !if $(SECURE_BOOT_ENABLE) == TRUE
308 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashAuthenticatedDxe.inf
309 !else
310 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
311 !endif
312 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
313
314 #
315 # Platform Driver
316 #
317 ArmVirtPkg/VirtFdtDxe/VirtFdtDxe.inf
318 ArmVirtPkg/QemuFwCfgToPcdDxe/QemuFwCfgToPcd.inf
319 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
320 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
321 OvmfPkg/VirtioNetDxe/VirtioNet.inf
322
323 #
324 # FAT filesystem + GPT/MBR partitioning
325 #
326 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
327 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
328 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
329
330 #
331 # Bds
332 #
333 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
334 !if $(INTEL_BDS) == TRUE
335 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
336 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
337 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
338 !else
339 ArmPlatformPkg/Bds/Bds.inf
340 !endif
341
342 #
343 # SCSI Bus and Disk Driver
344 #
345 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
346 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
347
348 #
349 # SMBIOS Support
350 #
351 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
352 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
353
354 #
355 # ACPI Support
356 #
357 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
358 OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf
359
360 #
361 # PCI support
362 #
363 ArmVirtPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
364 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
365 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
366
367 #
368 # Video support
369 #
370 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
371 <LibraryClasses>
372 BltLib|OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
373 }
374 OvmfPkg/PlatformDxe/Platform.inf
375
376 #
377 # USB Support
378 #
379 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
380 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
381 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
382 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
383 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf