]> git.proxmox.com Git - mirror_edk2.git/blame - ArmVirtPkg/ArmVirtQemuKernel.dsc
ArmVirtPkg/PciHostBridgeDxe: move to FDT client protocol
[mirror_edk2.git] / ArmVirtPkg / ArmVirtQemuKernel.dsc
CommitLineData
8de84d42
AB
1#\r
2# Copyright (c) 2011-2015, ARM Limited. All rights reserved.\r
3# Copyright (c) 2014, Linaro Limited. All rights reserved.\r
2ff39d58 4# Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.\r
8de84d42
AB
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/ArmVirtQemuKernel-$(ARCH)\r
27 SUPPORTED_ARCHITECTURES = AARCH64|ARM\r
28 BUILD_TARGETS = DEBUG|RELEASE\r
29 SKUID_IDENTIFIER = DEFAULT\r
30 FLASH_DEFINITION = ArmVirtPkg/ArmVirtQemuKernel.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\r
38!include ArmVirtPkg/ArmVirt.dsc.inc\r
39\r
40[LibraryClasses.AARCH64]\r
41 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf\r
42 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexAEMv8Lib/ArmCortexAEMv8Lib.inf\r
43\r
44[LibraryClasses.ARM]\r
45 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf\r
46 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexA15Lib/ArmCortexA15Lib.inf\r
47\r
48[LibraryClasses.common]\r
49 # Virtio Support\r
50 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf\r
51 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf\r
52 QemuFwCfgLib|ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf\r
53\r
54 ArmPlatformLib|ArmVirtPkg/Library/ArmQemuRelocatablePlatformLib/ArmQemuRelocatablePlatformLib.inf\r
55 ArmPlatformSysConfigLib|ArmPlatformPkg/Library/ArmPlatformSysConfigLibNull/ArmPlatformSysConfigLibNull.inf\r
56\r
57 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf\r
58 NorFlashPlatformLib|ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf\r
59\r
60 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf\r
61 GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf\r
62 PlatformBdsLib|ArmVirtPkg/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf\r
63 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf\r
64 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf\r
2ff39d58
DB
65!if $(SECURE_BOOT_ENABLE) == TRUE\r
66 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf\r
67!endif\r
a06d0bb5 68 PciPcdProducerLib|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf\r
8de84d42
AB
69\r
70[LibraryClasses.common.UEFI_DRIVER]\r
71 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
72\r
73[BuildOptions]\r
74 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A15 -I$(WORKSPACE)/ArmVirtPkg/Include\r
75 GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a15 -I$(WORKSPACE)/ArmVirtPkg/Include\r
76 *_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmVirtPkg/Include\r
77\r
78\r
79################################################################################\r
80#\r
81# Pcd Section - list of all EDK II PCD Entries defined by this Platform\r
82#\r
83################################################################################\r
84\r
85[PcdsFeatureFlag.common]\r
86 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation|TRUE\r
87 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTranslation|TRUE\r
88\r
89 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.\r
90 # It could be set FALSE to save size.\r
91 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r
92 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE\r
93\r
94 # Activate KVM workaround for now.\r
95 gArmVirtTokenSpaceGuid.PcdKludgeMapPciMmioAsCached|TRUE\r
96\r
97[PcdsFixedAtBuild.common]\r
98 gArmPlatformTokenSpaceGuid.PcdCoreCount|1\r
99!if $(ARCH) == AARCH64\r
100 gArmTokenSpaceGuid.PcdVFPEnabled|1\r
101!endif\r
102\r
103 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000\r
104 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000\r
105\r
106 # Size of the region used by UEFI in permanent memory (Reserved 64MB)\r
107 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000\r
108\r
109 #\r
110 # ARM Pcds\r
111 #\r
112 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000\r
113\r
114 ## Trustzone enable (to make the transition from EL3 to EL2 in ArmPlatformPkg/Sec)\r
115 gArmTokenSpaceGuid.PcdTrustzoneSupport|FALSE\r
116\r
117 #\r
118 # ARM PrimeCell\r
119 #\r
120\r
121 ## PL011 - Serial Terminal\r
122 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400\r
123\r
124 ## Default Terminal Type\r
125 ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM\r
126!if $(TTY_TERMINAL) == TRUE\r
127 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4\r
128!else\r
129 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|1\r
130!endif\r
131 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3\r
132\r
133 #\r
134 # ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM\r
135 #\r
136 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0\r
137\r
138 #\r
139 # NV Storage PCDs. Use base of 0x04000000 for NOR1\r
140 #\r
141 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x04000000\r
142 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00040000\r
143 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x04040000\r
144 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00040000\r
145 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x04080000\r
146 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00040000\r
147\r
148[PcdsPatchableInModule.common]\r
149 #\r
150 # This will be overridden in the code\r
151 #\r
152 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0\r
153 gArmTokenSpaceGuid.PcdSystemMemorySize|0x0\r
154\r
155 #\r
156 # Define a default initial address for the device tree.\r
157 # Ignored if x0 != 0 at entry.\r
158 #\r
159 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000\r
160\r
161 gArmTokenSpaceGuid.PcdFdBaseAddress|0x0\r
162 gArmTokenSpaceGuid.PcdFvBaseAddress|0x0\r
163\r
164[PcdsFixedAtBuild.AARCH64]\r
165\r
166 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE\r
167 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }\r
168\r
169 #\r
170 # The maximum physical I/O addressability of the processor, set with\r
171 # BuildCpuHob().\r
172 #\r
173 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16\r
174\r
175 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE\r
176\r
177 # KVM limits it IPA space to 40 bits (1 TB), so there is no need to\r
178 # support anything bigger, even if the host hardware does\r
179 gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|40\r
180\r
181[PcdsDynamicDefault.common]\r
182 ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI\r
183 # enumeration to complete before installing ACPI tables.\r
184 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE\r
185\r
186 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0\r
187 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0\r
188 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0\r
189 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0\r
190\r
191 #\r
192 # ARM General Interrupt Controller\r
193 #\r
194 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0\r
195 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0\r
196 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0\r
8de84d42
AB
197\r
198 ## PL031 RealTimeClock\r
199 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0\r
200\r
201 gArmPlatformTokenSpaceGuid.PcdPciBusMin|0x0\r
202 gArmPlatformTokenSpaceGuid.PcdPciBusMax|0x0\r
203 gArmPlatformTokenSpaceGuid.PcdPciIoBase|0x0\r
204 gArmPlatformTokenSpaceGuid.PcdPciIoSize|0x0\r
205 gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0\r
206 gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0\r
207 gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0\r
a06d0bb5
AB
208\r
209 # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this\r
210 # PCD and PcdPciDisableBusEnumeration above have not been assigned yet\r
211 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF\r
8de84d42 212\r
8de84d42
AB
213 #\r
214 # Set video resolution for boot options and for text setup.\r
215 # PlatformDxe can set the former at runtime.\r
216 #\r
217 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800\r
218 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600\r
219 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640\r
220 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480\r
221\r
222 #\r
223 # SMBIOS entry point version\r
224 #\r
225 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0300\r
226 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0\r
227 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE\r
228\r
229################################################################################\r
230#\r
231# Components Section - list of all EDK II Modules needed by this Platform\r
232#\r
233################################################################################\r
234[Components.common]\r
235 #\r
236 # PEI Phase modules\r
237 #\r
238 ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {\r
239 <LibraryClasses>\r
240 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf\r
241 LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
242 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf\r
243 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf\r
244 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf\r
245 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf\r
246 }\r
247\r
248 #\r
249 # DXE\r
250 #\r
251 MdeModulePkg/Core/Dxe/DxeMain.inf {\r
252 <LibraryClasses>\r
253 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf\r
254 }\r
31b3b02a
AB
255 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {\r
256 <LibraryClasses>\r
257 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
258 }\r
8de84d42
AB
259\r
260 #\r
261 # Architectural Protocols\r
262 #\r
263 ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r
264 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
265 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {\r
266 <LibraryClasses>\r
267 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf\r
268 }\r
269!if $(SECURE_BOOT_ENABLE) == TRUE\r
270 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {\r
271 <LibraryClasses>\r
272 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf\r
273 }\r
274 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf\r
275!else\r
276 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
277!endif\r
278 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
279 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r
280 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
281 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf\r
282 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r
283 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r
284\r
285 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
286 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
287 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r
288 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
289 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf\r
290\r
291 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
292\r
293 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf\r
ffced385
AB
294 ArmPkg/Drivers/TimerDxe/TimerDxe.inf {\r
295 <LibraryClasses>\r
296 NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf\r
297 }\r
8de84d42
AB
298!if $(SECURE_BOOT_ENABLE) == TRUE\r
299 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashAuthenticatedDxe.inf\r
300!else\r
301 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf\r
302!endif\r
303 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
304\r
305 #\r
306 # Platform Driver\r
307 #\r
308 ArmVirtPkg/VirtFdtDxe/VirtFdtDxe.inf\r
44b9e615 309 ArmVirtPkg/FdtClientDxe/FdtClientDxe.inf\r
8de84d42
AB
310 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r
311 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf\r
312 OvmfPkg/VirtioNetDxe/VirtioNet.inf\r
313\r
314 #\r
315 # FAT filesystem + GPT/MBR partitioning\r
316 #\r
317 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
318 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
319 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
42e3d9eb 320 FatPkg/EnhancedFatDxe/Fat.inf\r
8de84d42
AB
321\r
322 #\r
323 # Bds\r
324 #\r
325 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
326 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
327 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
328 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf\r
329\r
330 #\r
331 # SCSI Bus and Disk Driver\r
332 #\r
333 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
334 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r
335\r
336 #\r
337 # SMBIOS Support\r
338 #\r
339 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {\r
340 <LibraryClasses>\r
341 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf\r
342 }\r
343 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf\r
344\r
345 #\r
346 # ACPI Support\r
347 #\r
348 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r
349 OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf\r
350\r
351 #\r
352 # PCI support\r
353 #\r
354 ArmVirtPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf\r
355 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf\r
356 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf\r
3898f492 357 OvmfPkg/Virtio10Dxe/Virtio10.inf\r
8de84d42
AB
358\r
359 #\r
360 # Video support\r
361 #\r
362 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {\r
363 <LibraryClasses>\r
364 BltLib|OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf\r
365 }\r
366 OvmfPkg/PlatformDxe/Platform.inf\r
367\r
368 #\r
369 # USB Support\r
370 #\r
371 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf\r
372 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf\r
373 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf\r
374 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf\r
375 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf\r