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