]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/ArmVirtQemuKernel.dsc
df125cfef646d186cfc2e4d6c0594e2bbc96eb6e
[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|NOOPT
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 DEFINE NETWORK_IP6_ENABLE = FALSE
38 DEFINE HTTP_BOOT_ENABLE = FALSE
39
40 !include ArmVirtPkg/ArmVirt.dsc.inc
41
42 [LibraryClasses.common]
43 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
44 ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
45
46 # Virtio Support
47 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
48 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
49 QemuFwCfgLib|ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf
50 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/BaseQemuFwCfgS3LibNull.inf
51
52 ArmVirtMemInfoLib|ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.inf
53
54 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
55 NorFlashPlatformLib|ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf
56
57 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
58 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
59 PlatformBootManagerLib|ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
60 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
61 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
62 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
63 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
64 PciPcdProducerLib|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
65 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
66 PciHostBridgeLib|ArmVirtPkg/Library/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
67
68 [LibraryClasses.common.UEFI_DRIVER]
69 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
70
71 [BuildOptions.common.EDKII.SEC, BuildOptions.common.EDKII.BASE]
72 #
73 # CLANG38 with LTO support enabled uses the GNU GOLD linker, which insists
74 # on emitting GOT based symbol references when running in shared mode, unless
75 # we override visibility to 'hidden' in all modules that make up the PrePi
76 # build.
77 #
78 GCC:*_CLANG38_*_CC_FLAGS = -include $(WORKSPACE)/ArmVirtPkg/Include/Platform/Hidden.h
79
80 ################################################################################
81 #
82 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
83 #
84 ################################################################################
85
86 [PcdsFeatureFlag.common]
87 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation|TRUE
88 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTranslation|TRUE
89
90 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
91 # It could be set FALSE to save size.
92 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
93 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
94
95 [PcdsFixedAtBuild.common]
96 gArmPlatformTokenSpaceGuid.PcdCoreCount|1
97 !if $(ARCH) == AARCH64
98 gArmTokenSpaceGuid.PcdVFPEnabled|1
99 !endif
100
101 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000
102 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
103 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
104 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
105
106 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
107 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
108
109 ## Trustzone enable (to make the transition from EL3 to EL2 in ArmPlatformPkg/Sec)
110 gArmTokenSpaceGuid.PcdTrustzoneSupport|FALSE
111
112 #
113 # ARM PrimeCell
114 #
115
116 ## PL011 - Serial Terminal
117 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
118
119 ## Default Terminal Type
120 ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
121 !if $(TTY_TERMINAL) == TRUE
122 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
123 !else
124 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|1
125 !endif
126
127 #
128 # ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM
129 #
130 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
131
132 !if $(HTTP_BOOT_ENABLE) == TRUE
133 gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE
134 !endif
135
136 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
137 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
138
139 #
140 # The maximum physical I/O addressability of the processor, set with
141 # BuildCpuHob().
142 #
143 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
144
145 [PcdsPatchableInModule.common]
146 #
147 # This will be overridden in the code
148 #
149 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0
150 gArmTokenSpaceGuid.PcdSystemMemorySize|0x0
151
152 #
153 # Define a default initial address for the device tree.
154 # Ignored if x0 != 0 at entry.
155 #
156 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000
157
158 gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
159 gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
160
161 [PcdsDynamicDefault.common]
162 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
163
164 ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
165 # enumeration to complete before installing ACPI tables.
166 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
167
168 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
169 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
170 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
171 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
172
173 #
174 # ARM General Interrupt Controller
175 #
176 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
177 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
178 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
179
180 ## PL031 RealTimeClock
181 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
182
183 # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
184 # PCD and PcdPciDisableBusEnumeration above have not been assigned yet
185 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
186
187 gArmTokenSpaceGuid.PcdPciIoTranslation|0x0
188
189 #
190 # Set video resolution for boot options and for text setup.
191 # PlatformDxe can set the former at runtime.
192 #
193 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
194 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
195 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
196 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
197
198 #
199 # SMBIOS entry point version
200 #
201 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0300
202 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
203 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
204
205 ################################################################################
206 #
207 # Components Section - list of all EDK II Modules needed by this Platform
208 #
209 ################################################################################
210 [Components.common]
211 #
212 # PEI Phase modules
213 #
214 ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {
215 <LibraryClasses>
216 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
217 LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
218 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
219 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
220 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
221 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
222 }
223
224 #
225 # DXE
226 #
227 MdeModulePkg/Core/Dxe/DxeMain.inf {
228 <LibraryClasses>
229 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
230 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
231 }
232 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
233 <LibraryClasses>
234 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
235 }
236
237 #
238 # Architectural Protocols
239 #
240 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
241 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
242 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
243 <LibraryClasses>
244 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
245 NULL|EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf
246 # don't use unaligned CopyMem () on the UEFI varstore NOR flash region
247 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
248 }
249 !if $(SECURE_BOOT_ENABLE) == TRUE
250 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
251 <LibraryClasses>
252 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
253 }
254 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
255 !else
256 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
257 !endif
258 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
259 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
260 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
261 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
262 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf {
263 <LibraryClasses>
264 NULL|ArmVirtPkg/Library/ArmVirtPL031FdtClientLib/ArmVirtPL031FdtClientLib.inf
265 }
266 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
267
268 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
269 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
270 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
271 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
272 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
273
274 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
275
276 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
277 ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
278 <LibraryClasses>
279 NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
280 }
281 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
282 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
283
284 #
285 # Platform Driver
286 #
287 ArmVirtPkg/VirtioFdtDxe/VirtioFdtDxe.inf
288 ArmVirtPkg/FdtClientDxe/FdtClientDxe.inf
289 ArmVirtPkg/HighMemDxe/HighMemDxe.inf
290 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
291 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
292 OvmfPkg/VirtioNetDxe/VirtioNet.inf
293 OvmfPkg/VirtioRngDxe/VirtioRng.inf
294
295 #
296 # FAT filesystem + GPT/MBR partitioning + UDF filesystem
297 #
298 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
299 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
300 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
301 FatPkg/EnhancedFatDxe/Fat.inf
302 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
303
304 #
305 # Bds
306 #
307 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
308 <LibraryClasses>
309 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
310 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
311 }
312 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
313 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
314 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
315 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
316 MdeModulePkg/Logo/LogoDxe.inf
317 MdeModulePkg/Application/UiApp/UiApp.inf {
318 <LibraryClasses>
319 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
320 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
321 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
322 }
323
324 #
325 # Networking stack
326 #
327 MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
328 MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
329 MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
330 MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
331 MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
332 MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
333 MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
334 MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
335 !if $(NETWORK_IP6_ENABLE) == TRUE
336 NetworkPkg/Ip6Dxe/Ip6Dxe.inf
337 NetworkPkg/TcpDxe/TcpDxe.inf
338 NetworkPkg/Udp6Dxe/Udp6Dxe.inf
339 NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.inf
340 NetworkPkg/Mtftp6Dxe/Mtftp6Dxe.inf
341 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
342 NetworkPkg/IScsiDxe/IScsiDxe.inf
343 !else
344 MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
345 MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
346 MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
347 !endif
348 !if $(HTTP_BOOT_ENABLE) == TRUE
349 NetworkPkg/DnsDxe/DnsDxe.inf
350 NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
351 NetworkPkg/HttpDxe/HttpDxe.inf
352 NetworkPkg/HttpBootDxe/HttpBootDxe.inf
353 !endif
354
355 #
356 # SCSI Bus and Disk Driver
357 #
358 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
359 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
360
361 #
362 # SMBIOS Support
363 #
364 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
365 <LibraryClasses>
366 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
367 }
368 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
369
370 #
371 # PCI support
372 #
373 ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf {
374 <LibraryClasses>
375 NULL|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
376 }
377 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
378 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
379 <LibraryClasses>
380 NULL|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
381 }
382 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
383 OvmfPkg/Virtio10Dxe/Virtio10.inf
384
385 #
386 # Video support
387 #
388 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
389 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
390 OvmfPkg/PlatformDxe/Platform.inf
391
392 #
393 # USB Support
394 #
395 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
396 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
397 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
398 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
399 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
400 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
401
402 #
403 # ACPI Support
404 #
405 ArmVirtPkg/PlatformHasAcpiDtDxe/PlatformHasAcpiDtDxe.inf
406 [Components.AARCH64]
407 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
408 OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf {
409 <LibraryClasses>
410 NULL|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
411 }