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