ArmPlatformPkg: enable use of authenticated variables in NorFlashDxe
[mirror_edk2.git] / ArmPlatformPkg / ArmVirtualizationPkg / ArmVirtualizationQemu.dsc
CommitLineData
6f5872b1
MC
1#\r
2# Copyright (c) 2011-2013, ARM Limited. All rights reserved.\r
3# Copyright (c) 2014, Linaro Limited. All rights reserved.\r
4#\r
5# This program and the accompanying materials\r
6# are licensed and made available under the terms and conditions of the BSD License\r
7# which accompanies this distribution. The full text of the license may be found at\r
8# http://opensource.org/licenses/bsd-license.php\r
9#\r
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12#\r
13#\r
14\r
15################################################################################\r
16#\r
17# Defines Section - statements that will be processed to create a Makefile.\r
18#\r
19################################################################################\r
20[Defines]\r
21 PLATFORM_NAME = ArmVirtualizationQemu\r
22 PLATFORM_GUID = 37d7e986-f7e9-45c2-8067-e371421a626c\r
23 PLATFORM_VERSION = 0.1\r
24 DSC_SPECIFICATION = 0x00010005\r
25 OUTPUT_DIRECTORY = Build/ArmVirtualizationQemu-$(ARCH)\r
26 SUPPORTED_ARCHITECTURES = AARCH64|ARM\r
27 BUILD_TARGETS = DEBUG|RELEASE\r
28 SKUID_IDENTIFIER = DEFAULT\r
29 FLASH_DEFINITION = ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.fdf\r
30\r
31!include ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualization.dsc.inc\r
32\r
33[LibraryClasses.AARCH64]\r
34 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf\r
35 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexAEMv8Lib/ArmCortexAEMv8Lib.inf\r
36\r
37[LibraryClasses.ARM]\r
38 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf\r
39 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexA15Lib/ArmCortexA15Lib.inf\r
40\r
41[LibraryClasses.common]\r
42 # Virtio Support\r
43 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf\r
44 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf\r
6e2543b0 45 QemuFwCfgLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf\r
6f5872b1
MC
46\r
47 ArmPlatformLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmVirtualizationPlatformLib/ArmVirtualizationPlatformLib.inf\r
48 ArmPlatformSysConfigLib|ArmPlatformPkg/Library/ArmPlatformSysConfigLibNull/ArmPlatformSysConfigLibNull.inf\r
49\r
50 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf\r
51\r
43ac100e
OM
52!ifdef INTEL_BDS\r
53 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf\r
54 GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf\r
be8afe14 55 PlatformBdsLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf\r
43ac100e 56 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf\r
274b4a8d 57 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf\r
43ac100e
OM
58!endif\r
59\r
6f5872b1
MC
60[LibraryClasses.common.UEFI_DRIVER]\r
61 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
62\r
63[LibraryClasses.AARCH64.SEC]\r
64 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64LibSec.inf\r
65\r
66[LibraryClasses.ARM.SEC]\r
67 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibSec.inf\r
68\r
69[BuildOptions]\r
70 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVirtualizationPkg/Include\r
71 GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVirtualizationPkg/Include\r
4a8fa966 72 *_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmPlatformPkg/ArmVirtualizationPkg/Include\r
6f5872b1
MC
73\r
74\r
75################################################################################\r
76#\r
77# Pcd Section - list of all EDK II PCD Entries defined by this Platform\r
78#\r
79################################################################################\r
80\r
81[PcdsFeatureFlag.common]\r
10233c9e 82 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation|TRUE\r
274b4a8d
LE
83 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTranslation|TRUE\r
84\r
6f5872b1
MC
85 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.\r
86 # It could be set FALSE to save size.\r
d01c77bb
LE
87 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r
88 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE\r
6f5872b1 89\r
f9a8be42
LE
90 # Activate KVM workaround for now.\r
91 gArmVirtualizationTokenSpaceGuid.PcdKludgeMapPciMmioAsCached|TRUE\r
92\r
6f5872b1 93[PcdsFixedAtBuild.common]\r
6f5872b1
MC
94 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"QEMU"\r
95\r
96 gArmPlatformTokenSpaceGuid.PcdCoreCount|1\r
97!if $(ARCH) == AARCH64\r
98 gArmTokenSpaceGuid.PcdVFPEnabled|1\r
99!endif\r
100\r
101 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000\r
102 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000\r
103\r
104 # Size of the region used by UEFI in permanent memory (Reserved 64MB)\r
105 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000\r
106\r
107 #\r
108 # ARM Pcds\r
109 #\r
110 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000\r
111\r
112 ## Trustzone enable (to make the transition from EL3 to EL2 in ArmPlatformPkg/Sec)\r
113 gArmTokenSpaceGuid.PcdTrustzoneSupport|FALSE\r
114\r
115 #\r
116 # ARM PrimeCell\r
117 #\r
118\r
119 ## PL011 - Serial Terminal\r
120 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400\r
121\r
122 #\r
123 # ARM OS Loader\r
124 #\r
125 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux (EFI stub) on virtio31:hd0:part0"\r
126 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,003E000A00000000)/HD(1,MBR,0x00000000,0x3F,0x19FC0)/Image"\r
127 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"root=/dev/vda2 console=ttyAMA0 earlycon uefi_debug"\r
128 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|0\r
129\r
d01c77bb 130 #\r
ba67a145 131 # Settings for ARM BDS -- use the serial console (ConIn & ConOut).\r
d01c77bb 132 #\r
ba67a145
LE
133 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"\r
134 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"\r
6f5872b1
MC
135 gArmPlatformTokenSpaceGuid.PcdPlatformBootTimeOut|3\r
136\r
137 #\r
ab879e4c 138 # ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM\r
6f5872b1 139 #\r
ab879e4c 140 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0\r
6f5872b1
MC
141\r
142 #\r
143 # NV Storage PCDs. Use base of 0x04000000 for NOR1\r
144 #\r
145 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x04000000\r
146 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00040000\r
147 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x04040000\r
148 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00040000\r
149 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x04080000\r
150 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00040000\r
151\r
152 # System Memory Base -- fixed at 0x4000_0000\r
153 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000\r
154\r
155 # initial location of the device tree blob passed by QEMU -- base of DRAM\r
156 gArmVirtualizationTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000\r
157\r
43ac100e
OM
158!ifdef INTEL_BDS\r
159 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE\r
b49ed62d 160 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }\r
43ac100e
OM
161!endif\r
162\r
1ff2b5a8
LE
163 #\r
164 # The maximum physical I/O addressability of the processor, set with\r
165 # BuildCpuHob().\r
166 #\r
167 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16\r
168\r
65bb13b0 169[PcdsDynamicDefault.common]\r
2c3ce491
JJ
170 ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI\r
171 # enumeration to complete before installing ACPI tables.\r
172 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE\r
173\r
6f5872b1
MC
174 # System Memory Size -- 1 MB initially, actual size will be fetched from DT\r
175 gArmTokenSpaceGuid.PcdSystemMemorySize|0x00100000\r
176\r
6f5872b1
MC
177 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0\r
178 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0\r
179 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0\r
180 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0\r
181\r
182 #\r
183 # ARM General Interrupt Controller\r
184 #\r
185 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0\r
7b70dabb 186 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0\r
6f5872b1
MC
187 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0\r
188\r
189 ## PL031 RealTimeClock\r
190 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0\r
191\r
65bb13b0
LE
192 gArmPlatformTokenSpaceGuid.PcdPciBusMin|0x0\r
193 gArmPlatformTokenSpaceGuid.PcdPciBusMax|0x0\r
194 gArmPlatformTokenSpaceGuid.PcdPciIoBase|0x0\r
195 gArmPlatformTokenSpaceGuid.PcdPciIoSize|0x0\r
196 gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0\r
197 gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0\r
198 gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0\r
199 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x0\r
200\r
9180ab73 201 gArmVirtualizationTokenSpaceGuid.PcdArmPsciMethod|0\r
6f5872b1 202\r
ad652d46
LE
203 gArmVirtualizationTokenSpaceGuid.PcdFwCfgSelectorAddress|0x0\r
204 gArmVirtualizationTokenSpaceGuid.PcdFwCfgDataAddress|0x0\r
205\r
66b43839 206 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3\r
1b610ac2 207\r
d01c77bb
LE
208 #\r
209 # Set video resolution for boot options and for text setup.\r
210 # PlatformDxe can set the former at runtime.\r
211 #\r
212 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800\r
213 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600\r
66b43839
RN
214 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640\r
215 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480\r
d01c77bb 216\r
6f5872b1
MC
217################################################################################\r
218#\r
219# Components Section - list of all EDK II Modules needed by this Platform\r
220#\r
221################################################################################\r
222[Components.common]\r
223 #\r
224 # PEI Phase modules\r
225 #\r
226 ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf {\r
227 <LibraryClasses>\r
228 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf\r
229 }\r
230 MdeModulePkg/Core/Pei/PeiMain.inf\r
231 MdeModulePkg/Universal/PCD/Pei/Pcd.inf\r
232 ArmPlatformPkg/PlatformPei/PlatformPeim.inf\r
233 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf\r
234 ArmPkg/Drivers/CpuPei/CpuPei.inf\r
235\r
236 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r
237 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {\r
238 <LibraryClasses>\r
9435a57e 239 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
6f5872b1
MC
240 }\r
241\r
242 #\r
243 # DXE\r
244 #\r
245 MdeModulePkg/Core/Dxe/DxeMain.inf {\r
246 <LibraryClasses>\r
247 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf\r
248 }\r
249 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf\r
250\r
251 #\r
252 # Architectural Protocols\r
253 #\r
254 ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r
255 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
256 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
257 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
258 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r
259 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r
260 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
261 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf\r
262 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r
263 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r
264\r
265 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
266 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
267 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r
268 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
269 EmbeddedPkg/SerialDxe/SerialDxe.inf\r
270\r
271 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
272\r
273 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf\r
274 ArmPkg/Drivers/TimerDxe/TimerDxe.inf\r
275 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf {\r
276 <LibraryClasses>\r
277 NorFlashPlatformLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf\r
278 }\r
279 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
280\r
281 #\r
282 # Platform Driver\r
283 #\r
284 ArmPlatformPkg/ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.inf\r
285 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r
286 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf\r
287 OvmfPkg/VirtioNetDxe/VirtioNet.inf\r
288\r
289 #\r
290 # FAT filesystem + GPT/MBR partitioning\r
291 #\r
292 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
293 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
294 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
295\r
296 #\r
297 # Bds\r
298 #\r
299 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
43ac100e
OM
300!ifdef INTEL_BDS\r
301 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
302 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
303 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf\r
304!else\r
6f5872b1 305 ArmPlatformPkg/Bds/Bds.inf\r
43ac100e 306!endif\r
6f5872b1
MC
307\r
308 #\r
309 # SCSI Bus and Disk Driver\r
310 #\r
311 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
312 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r
1c5adbef
LE
313\r
314 #\r
315 # ACPI Support\r
316 #\r
317 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r
318 OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf\r
10233c9e
LE
319\r
320 #\r
321 # PCI support\r
322 #\r
323 ArmPlatformPkg/ArmVirtualizationPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf\r
324 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf\r
325 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf\r
d01c77bb
LE
326\r
327 #\r
328 # Video support\r
329 #\r
330 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {\r
331 <LibraryClasses>\r
332 BltLib|OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf\r
333 }\r
334 OvmfPkg/PlatformDxe/Platform.inf\r
e17b1db5
LE
335\r
336 #\r
337 # USB Support\r
338 #\r
339 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf\r
340 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf\r
eee32602 341 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf\r
e17b1db5
LE
342 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf\r
343 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf\r