Commit | Line | Data |
---|---|---|
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 | |
87 | gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|FALSE\r | |
88 | \r | |
f9a8be42 LE |
89 | # Activate KVM workaround for now.\r |
90 | gArmVirtualizationTokenSpaceGuid.PcdKludgeMapPciMmioAsCached|TRUE\r | |
91 | \r | |
6f5872b1 MC |
92 | [PcdsFixedAtBuild.common]\r |
93 | gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F\r | |
94 | \r | |
95 | gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"QEMU"\r | |
96 | \r | |
97 | gArmPlatformTokenSpaceGuid.PcdCoreCount|1\r | |
98 | !if $(ARCH) == AARCH64\r | |
99 | gArmTokenSpaceGuid.PcdVFPEnabled|1\r | |
100 | !endif\r | |
101 | \r | |
102 | gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000\r | |
103 | gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000\r | |
104 | \r | |
105 | # Size of the region used by UEFI in permanent memory (Reserved 64MB)\r | |
106 | gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000\r | |
107 | \r | |
108 | #\r | |
109 | # ARM Pcds\r | |
110 | #\r | |
111 | gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000\r | |
112 | \r | |
113 | ## Trustzone enable (to make the transition from EL3 to EL2 in ArmPlatformPkg/Sec)\r | |
114 | gArmTokenSpaceGuid.PcdTrustzoneSupport|FALSE\r | |
115 | \r | |
116 | #\r | |
117 | # ARM PrimeCell\r | |
118 | #\r | |
119 | \r | |
120 | ## PL011 - Serial Terminal\r | |
121 | gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400\r | |
122 | \r | |
123 | #\r | |
124 | # ARM OS Loader\r | |
125 | #\r | |
126 | gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux (EFI stub) on virtio31:hd0:part0"\r | |
127 | gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,003E000A00000000)/HD(1,MBR,0x00000000,0x3F,0x19FC0)/Image"\r | |
128 | gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"root=/dev/vda2 console=ttyAMA0 earlycon uefi_debug"\r | |
129 | gArmPlatformTokenSpaceGuid.PcdDefaultBootType|0\r | |
130 | \r | |
131 | # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)\r | |
132 | gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"\r | |
133 | gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"\r | |
134 | gArmPlatformTokenSpaceGuid.PcdPlatformBootTimeOut|3\r | |
135 | \r | |
136 | #\r | |
ab879e4c | 137 | # ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM\r |
6f5872b1 | 138 | #\r |
ab879e4c | 139 | gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0\r |
6f5872b1 MC |
140 | \r |
141 | #\r | |
142 | # NV Storage PCDs. Use base of 0x04000000 for NOR1\r | |
143 | #\r | |
144 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x04000000\r | |
145 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00040000\r | |
146 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x04040000\r | |
147 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00040000\r | |
148 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x04080000\r | |
149 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00040000\r | |
150 | \r | |
151 | # System Memory Base -- fixed at 0x4000_0000\r | |
152 | gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000\r | |
153 | \r | |
154 | # initial location of the device tree blob passed by QEMU -- base of DRAM\r | |
155 | gArmVirtualizationTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000\r | |
156 | \r | |
43ac100e OM |
157 | !ifdef INTEL_BDS\r |
158 | gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE\r | |
b49ed62d | 159 | gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }\r |
43ac100e OM |
160 | !endif\r |
161 | \r | |
1ff2b5a8 LE |
162 | #\r |
163 | # The maximum physical I/O addressability of the processor, set with\r | |
164 | # BuildCpuHob().\r | |
165 | #\r | |
166 | gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16\r | |
167 | \r | |
65bb13b0 | 168 | [PcdsDynamicDefault.common]\r |
2c3ce491 JJ |
169 | ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI\r |
170 | # enumeration to complete before installing ACPI tables.\r | |
171 | gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE\r | |
172 | \r | |
6f5872b1 MC |
173 | # System Memory Size -- 1 MB initially, actual size will be fetched from DT\r |
174 | gArmTokenSpaceGuid.PcdSystemMemorySize|0x00100000\r | |
175 | \r | |
176 | # location of the device tree blob passed by QEMU\r | |
177 | gArmVirtualizationTokenSpaceGuid.PcdDeviceTreeBaseAddress|0x0\r | |
178 | \r | |
179 | gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0\r | |
180 | gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0\r | |
181 | gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0\r | |
182 | gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0\r | |
183 | \r | |
184 | #\r | |
185 | # ARM General Interrupt Controller\r | |
186 | #\r | |
187 | gArmTokenSpaceGuid.PcdGicDistributorBase|0x0\r | |
188 | gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0\r | |
189 | \r | |
190 | ## PL031 RealTimeClock\r | |
191 | gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0\r | |
192 | \r | |
65bb13b0 LE |
193 | gArmPlatformTokenSpaceGuid.PcdPciBusMin|0x0\r |
194 | gArmPlatformTokenSpaceGuid.PcdPciBusMax|0x0\r | |
195 | gArmPlatformTokenSpaceGuid.PcdPciIoBase|0x0\r | |
196 | gArmPlatformTokenSpaceGuid.PcdPciIoSize|0x0\r | |
197 | gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0\r | |
198 | gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0\r | |
199 | gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0\r | |
200 | gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x0\r | |
201 | \r | |
9180ab73 | 202 | gArmVirtualizationTokenSpaceGuid.PcdArmPsciMethod|0\r |
6f5872b1 | 203 | \r |
ad652d46 LE |
204 | gArmVirtualizationTokenSpaceGuid.PcdFwCfgSelectorAddress|0x0\r |
205 | gArmVirtualizationTokenSpaceGuid.PcdFwCfgDataAddress|0x0\r | |
206 | \r | |
1b610ac2 LE |
207 | gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3\r |
208 | \r | |
6f5872b1 MC |
209 | ################################################################################\r |
210 | #\r | |
211 | # Components Section - list of all EDK II Modules needed by this Platform\r | |
212 | #\r | |
213 | ################################################################################\r | |
214 | [Components.common]\r | |
215 | #\r | |
216 | # PEI Phase modules\r | |
217 | #\r | |
218 | ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf {\r | |
219 | <LibraryClasses>\r | |
220 | ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf\r | |
221 | }\r | |
222 | MdeModulePkg/Core/Pei/PeiMain.inf\r | |
223 | MdeModulePkg/Universal/PCD/Pei/Pcd.inf\r | |
224 | ArmPlatformPkg/PlatformPei/PlatformPeim.inf\r | |
225 | ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf\r | |
226 | ArmPkg/Drivers/CpuPei/CpuPei.inf\r | |
227 | \r | |
228 | MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r | |
229 | MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {\r | |
230 | <LibraryClasses>\r | |
231 | NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r | |
232 | }\r | |
233 | \r | |
234 | #\r | |
235 | # DXE\r | |
236 | #\r | |
237 | MdeModulePkg/Core/Dxe/DxeMain.inf {\r | |
238 | <LibraryClasses>\r | |
239 | NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf\r | |
240 | }\r | |
241 | MdeModulePkg/Universal/PCD/Dxe/Pcd.inf\r | |
242 | \r | |
243 | #\r | |
244 | # Architectural Protocols\r | |
245 | #\r | |
246 | ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r | |
247 | MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r | |
248 | MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r | |
249 | MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r | |
250 | MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r | |
251 | MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r | |
252 | MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r | |
253 | EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf\r | |
254 | EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r | |
255 | EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r | |
256 | \r | |
257 | MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r | |
258 | MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r | |
259 | MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r | |
260 | MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r | |
261 | EmbeddedPkg/SerialDxe/SerialDxe.inf\r | |
262 | \r | |
263 | MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r | |
264 | \r | |
265 | ArmPkg/Drivers/ArmGic/ArmGicDxe.inf\r | |
266 | ArmPkg/Drivers/TimerDxe/TimerDxe.inf\r | |
267 | ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf {\r | |
268 | <LibraryClasses>\r | |
269 | NorFlashPlatformLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf\r | |
270 | }\r | |
271 | MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r | |
272 | \r | |
273 | #\r | |
274 | # Platform Driver\r | |
275 | #\r | |
276 | ArmPlatformPkg/ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.inf\r | |
277 | OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r | |
278 | OvmfPkg/VirtioScsiDxe/VirtioScsi.inf\r | |
279 | OvmfPkg/VirtioNetDxe/VirtioNet.inf\r | |
280 | \r | |
281 | #\r | |
282 | # FAT filesystem + GPT/MBR partitioning\r | |
283 | #\r | |
284 | MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r | |
285 | MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r | |
286 | MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r | |
287 | \r | |
288 | #\r | |
289 | # Bds\r | |
290 | #\r | |
291 | MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r | |
43ac100e OM |
292 | !ifdef INTEL_BDS\r |
293 | MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r | |
294 | MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r | |
295 | IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf\r | |
296 | !else\r | |
6f5872b1 | 297 | ArmPlatformPkg/Bds/Bds.inf\r |
43ac100e | 298 | !endif\r |
6f5872b1 MC |
299 | \r |
300 | #\r | |
301 | # SCSI Bus and Disk Driver\r | |
302 | #\r | |
303 | MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r | |
304 | MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r | |
1c5adbef LE |
305 | \r |
306 | #\r | |
307 | # ACPI Support\r | |
308 | #\r | |
309 | MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r | |
310 | OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf\r | |
10233c9e LE |
311 | \r |
312 | #\r | |
313 | # PCI support\r | |
314 | #\r | |
315 | ArmPlatformPkg/ArmVirtualizationPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf\r | |
316 | MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf\r | |
317 | OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf\r |