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