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.<BR> 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 = ArmVirtXen 23 PLATFORM_GUID = d1c43be3-3373-4a06-86fb-d1cb3083a207 24 PLATFORM_VERSION = 0.1 25 DSC_SPECIFICATION = 0x00010005 26 OUTPUT_DIRECTORY = Build/ArmVirtXen-$(ARCH) 27 SUPPORTED_ARCHITECTURES = AARCH64|ARM 28 BUILD_TARGETS = DEBUG|RELEASE 29 SKUID_IDENTIFIER = DEFAULT 30 FLASH_DEFINITION = ArmVirtPkg/ArmVirtXen.fdf 31 32!include ArmVirtPkg/ArmVirt.dsc.inc 33 34[LibraryClasses] 35 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf 36 RealTimeClockLib|ArmVirtPkg/Library/XenRealTimeClockLib/XenRealTimeClockLib.inf 37 XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf 38 39[LibraryClasses.AARCH64] 40 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf 41 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexAEMv8Lib/ArmCortexAEMv8Lib.inf 42 43[LibraryClasses.ARM] 44 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf 45 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexA15Lib/ArmCortexA15Lib.inf 46 47[LibraryClasses.common] 48 # Virtio Support 49 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf 50 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf 51 52 ArmPlatformLib|ArmVirtPkg/Library/ArmXenRelocatablePlatformLib/ArmXenRelocatablePlatformLib.inf 53 ArmPlatformSysConfigLib|ArmPlatformPkg/Library/ArmPlatformSysConfigLibNull/ArmPlatformSysConfigLibNull.inf 54 55 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf 56 57 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf 58 GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf 59 PlatformBdsLib|ArmPlatformPkg/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf 60 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf 61 62 BdsLib|ArmPkg/Library/BdsLib/BdsLib.inf 63 64[LibraryClasses.common.UEFI_DRIVER] 65 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf 66 67[LibraryClasses.AARCH64.SEC] 68 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64LibPrePi.inf 69 70[LibraryClasses.ARM.SEC] 71 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibPrePi.inf 72 73[BuildOptions] 74 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A15 -I$(WORKSPACE)/ArmVirtPkg/Include 75 GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a15 -I$(WORKSPACE)/ArmVirtPkg/Include 76 GCC:*_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmVirtPkg/Include 77 78################################################################################ 79# 80# Pcd Section - list of all EDK II PCD Entries defined by this Platform 81# 82################################################################################ 83 84[PcdsFixedAtBuild.common] 85 gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)" 86 87 gArmPlatformTokenSpaceGuid.PcdCoreCount|1 88!if $(ARCH) == AARCH64 89 gArmTokenSpaceGuid.PcdVFPEnabled|1 90!endif 91 92 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000 93 94 # Size of the region used by UEFI in permanent memory (Reserved 64MB) 95 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000 96 97 # 98 # ARM Virtual Architectural Timer 99 # 100 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0 101 102 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE 103 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 } 104 105[PcdsPatchableInModule.common] 106 # 107 # This will be overridden in the code 108 # 109 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0 110 gArmTokenSpaceGuid.PcdSystemMemorySize|0x0 111 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x0 112 113 gArmTokenSpaceGuid.PcdFdBaseAddress|0x0 114 gArmTokenSpaceGuid.PcdFvBaseAddress|0x0 115 116[PcdsDynamicDefault.common] 117 ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI 118 # enumeration to complete before installing ACPI tables. 119 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE 120 121 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0 122 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0 123 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0 124 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0 125 126 # 127 # ARM General Interrupt Controller 128 # 129 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0 130 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0 131 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0 132 gArmVirtTokenSpaceGuid.PcdArmGicRevision|0x0 133 134 ## PL031 RealTimeClock 135 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0 136 137 gArmPlatformTokenSpaceGuid.PcdPciBusMin|0x0 138 gArmPlatformTokenSpaceGuid.PcdPciBusMax|0x0 139 gArmPlatformTokenSpaceGuid.PcdPciIoBase|0x0 140 gArmPlatformTokenSpaceGuid.PcdPciIoSize|0x0 141 gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0 142 gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0 143 gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0 144 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x0 145 146 gArmVirtTokenSpaceGuid.PcdFwCfgSelectorAddress|0x0 147 gArmVirtTokenSpaceGuid.PcdFwCfgDataAddress|0x0 148 gArmVirtTokenSpaceGuid.PcdFwCfgDmaAddress|0x0 149 150 gArmVirtTokenSpaceGuid.PcdArmPsciMethod|0 151 152 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3 153 154################################################################################ 155# 156# Components Section - list of all EDK II Modules needed by this Platform 157# 158################################################################################ 159[Components.common] 160 # 161 # PEI Phase modules 162 # 163 ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf { 164 <LibraryClasses> 165 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf 166 LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf 167 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf 168 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf 169 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf 170 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf 171 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf 172 } 173 174 # 175 # DXE 176 # 177 MdeModulePkg/Core/Dxe/DxeMain.inf { 178 <LibraryClasses> 179 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf 180 } 181 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf 182 183 # 184 # Architectural Protocols 185 # 186 ArmPkg/Drivers/CpuDxe/CpuDxe.inf 187 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf 188 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf 189 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf 190 191 MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf 192 193 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf 194 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf 195 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf 196 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf 197 198 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf 199 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf 200 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf 201 202 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf 203 204 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf 205 ArmPkg/Drivers/TimerDxe/TimerDxe.inf 206 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf 207 208 # 209 # Platform Driver 210 # 211 ArmVirtPkg/VirtFdtDxe/VirtFdtDxe.inf 212 213 # 214 # FAT filesystem + GPT/MBR partitioning 215 # 216 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf 217 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf 218 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf 219 220 # 221 # Bds 222 # 223 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf 224 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf 225 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf 226 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf 227 228 OvmfPkg/XenBusDxe/XenBusDxe.inf 229 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf 230