]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/ArmVirtQemu.dsc
ArmVirtPkg/ArmVirtQemu.dsc: Remove Linux specific boot path
[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 !else
144 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"
145 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"
146 !endif
147 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
148
149 #
150 # ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM
151 #
152 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
153
154 #
155 # NV Storage PCDs. Use base of 0x04000000 for NOR1
156 #
157 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x04000000
158 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00040000
159 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x04040000
160 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00040000
161 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x04080000
162 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00040000
163
164 # System Memory Base -- fixed at 0x4000_0000
165 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000
166
167 # initial location of the device tree blob passed by QEMU -- base of DRAM
168 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000
169
170 !if $(INTEL_BDS) == TRUE
171 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
172 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
173 !endif
174
175 #
176 # The maximum physical I/O addressability of the processor, set with
177 # BuildCpuHob().
178 #
179 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
180
181 [PcdsDynamicDefault.common]
182 ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
183 # enumeration to complete before installing ACPI tables.
184 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
185
186 # System Memory Size -- 1 MB initially, actual size will be fetched from DT
187 gArmTokenSpaceGuid.PcdSystemMemorySize|0x00100000
188
189 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
190 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
191 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
192 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
193
194 #
195 # ARM General Interrupt Controller
196 #
197 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
198 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
199 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
200
201 ## PL031 RealTimeClock
202 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
203
204 gArmPlatformTokenSpaceGuid.PcdPciBusMin|0x0
205 gArmPlatformTokenSpaceGuid.PcdPciBusMax|0x0
206 gArmPlatformTokenSpaceGuid.PcdPciIoBase|0x0
207 gArmPlatformTokenSpaceGuid.PcdPciIoSize|0x0
208 gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0
209 gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0
210 gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0
211 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x0
212
213 gArmVirtTokenSpaceGuid.PcdArmPsciMethod|0
214
215 gArmVirtTokenSpaceGuid.PcdFwCfgSelectorAddress|0x0
216 gArmVirtTokenSpaceGuid.PcdFwCfgDataAddress|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 #
229 # Components Section - list of all EDK II Modules needed by this Platform
230 #
231 ################################################################################
232 [Components.common]
233 #
234 # PEI Phase modules
235 #
236 ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf {
237 <LibraryClasses>
238 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf
239 }
240 MdeModulePkg/Core/Pei/PeiMain.inf
241 MdeModulePkg/Universal/PCD/Pei/Pcd.inf
242 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
243 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
244 ArmPkg/Drivers/CpuPei/CpuPei.inf
245
246 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
247
248 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
249 <LibraryClasses>
250 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
251 }
252
253 #
254 # DXE
255 #
256 MdeModulePkg/Core/Dxe/DxeMain.inf {
257 <LibraryClasses>
258 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
259 }
260 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
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 !if $(SECURE_BOOT_ENABLE) == TRUE
269 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
270 <LibraryClasses>
271 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
272 }
273 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
274 !else
275 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
276 !endif
277 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
278 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
279 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
280 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
281 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
282 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
283
284 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
285 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
286 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
287 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
288 EmbeddedPkg/SerialDxe/SerialDxe.inf
289
290 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
291
292 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
293 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
294 !if $(SECURE_BOOT_ENABLE) == TRUE
295 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashAuthenticatedDxe.inf
296 !else
297 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
298 !endif
299 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
300
301 #
302 # Platform Driver
303 #
304 ArmVirtPkg/VirtFdtDxe/VirtFdtDxe.inf
305 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
306 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
307 OvmfPkg/VirtioNetDxe/VirtioNet.inf
308
309 #
310 # FAT filesystem + GPT/MBR partitioning
311 #
312 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
313 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
314 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
315
316 #
317 # Bds
318 #
319 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
320 !if $(INTEL_BDS) == TRUE
321 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
322 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
323 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
324 !else
325 ArmPlatformPkg/Bds/Bds.inf
326 !endif
327
328 #
329 # SCSI Bus and Disk Driver
330 #
331 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
332 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
333
334 #
335 # ACPI Support
336 #
337 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
338 OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf
339
340 #
341 # PCI support
342 #
343 ArmVirtPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
344 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
345 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
346
347 #
348 # Video support
349 #
350 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
351 <LibraryClasses>
352 BltLib|OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
353 }
354 OvmfPkg/PlatformDxe/Platform.inf
355
356 #
357 # USB Support
358 #
359 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
360 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
361 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
362 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
363 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf